diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-11-30 17:00:27 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-11-30 17:14:37 +0100 |
commit | a2467ea894b37b0861b92e35edd93788f8e2a342 (patch) | |
tree | 81709217514355a6fc590667aa38c70c24dc7d39 /src/notify/notify.c | |
parent | core/exec-invoke: rename flags_fds to flag_fds (diff) | |
download | systemd-a2467ea894b37b0861b92e35edd93788f8e2a342.tar.xz systemd-a2467ea894b37b0861b92e35edd93788f8e2a342.zip |
fdset: set all collected fds to CLOEXEC in fdset_new_fill()
Diffstat (limited to 'src/notify/notify.c')
-rw-r--r-- | src/notify/notify.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/notify/notify.c b/src/notify/notify.c index 675fbda752..f63ec8b355 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -225,10 +225,6 @@ static int parse_argv(int argc, char *argv[]) { r = fdset_new_fill(/* filter_cloexec= */ 0, &passed); if (r < 0) return log_error_errno(r, "Failed to take possession of passed file descriptors: %m"); - - r = fdset_cloexec(passed, true); - if (r < 0) - return log_error_errno(r, "Failed to enable O_CLOEXEC for passed file descriptors: %m"); } if (fdnr < 3) { |