diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-07-02 19:42:01 +0200 |
---|---|---|
committer | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-07-02 19:42:01 +0200 |
commit | 913f38e4402ad19529b13fdb56db77eaa2b9f30a (patch) | |
tree | c97ecaa404ee1f4ced036d4f8a54e1b7d2a2efb2 /src/import/importd.c | |
parent | basic/fd-util: introduce stdio_unset_cloexec() function (diff) | |
download | systemd-913f38e4402ad19529b13fdb56db77eaa2b9f30a.tar.xz systemd-913f38e4402ad19529b13fdb56db77eaa2b9f30a.zip |
treewide: use stdio_unset_cloexec() function
Diffstat (limited to 'src/import/importd.c')
-rw-r--r-- | src/import/importd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/import/importd.c b/src/import/importd.c index 956a82945c..28b4302cb3 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -448,9 +448,7 @@ static int transfer_start(Transfer *t) { safe_close(null_fd); } - fd_cloexec(STDIN_FILENO, false); - fd_cloexec(STDOUT_FILENO, false); - fd_cloexec(STDERR_FILENO, false); + stdio_unset_cloexec(); setenv("SYSTEMD_LOG_TARGET", "console-prefixed", 1); setenv("NOTIFY_SOCKET", "/run/systemd/import/notify", 1); |