summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-09-05 16:15:09 +0200
committerMike Yuan <me@yhndnzj.com>2023-09-07 14:30:44 +0200
commite22c60a9d5dfc5f0b260c7906f3546aef2925998 (patch)
treedb787a77716e96a31cabe7e99485f866a7c17e93 /src/nspawn
parentMerge pull request #28957 from yuwata/core-mount-set-dirty-on-umount (diff)
downloadsystemd-e22c60a9d5dfc5f0b260c7906f3546aef2925998.tar.xz
systemd-e22c60a9d5dfc5f0b260c7906f3546aef2925998.zip
io-util: introduce loop_write_full that takes a timeout
Also drop do_poll as the use case is covered by timeout.
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 9e74ead8d5..3674f6b023 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -2478,7 +2478,7 @@ static int setup_credentials(const char *root) {
if (fd < 0)
return log_error_errno(errno, "Failed to create credential file %s: %m", j);
- r = loop_write(fd, arg_credentials[i].data, arg_credentials[i].size, /* do_poll= */ false);
+ r = loop_write(fd, arg_credentials[i].data, arg_credentials[i].size);
if (r < 0)
return log_error_errno(r, "Failed to write credential to file %s: %m", j);