summaryrefslogtreecommitdiffstats
path: root/src/notify/notify.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-11-30 17:00:27 +0100
committerMike Yuan <me@yhndnzj.com>2023-11-30 17:14:37 +0100
commita2467ea894b37b0861b92e35edd93788f8e2a342 (patch)
tree81709217514355a6fc590667aa38c70c24dc7d39 /src/notify/notify.c
parentcore/exec-invoke: rename flags_fds to flag_fds (diff)
downloadsystemd-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.c4
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) {