diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-02-08 08:57:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 08:57:05 +0100 |
commit | ef9962212aab39e621c8ec465cf7909cbba6ba4d (patch) | |
tree | f0aec7b16efa2c6ddf61895c18fd47b397f35714 /src/libsystemd/sd-bus | |
parent | 9eba03c7b10fe98e0443508402b3f9804230453e (diff) | |
parent | f3f2d02e9731e65eb15c26980305cd47e028f4fc (diff) | |
download | systemd-ef9962212aab39e621c8ec465cf7909cbba6ba4d.tar.gz |
Merge pull request #26328 from yuwata/udev-worker-set-process-name
udev: set worker process name
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r-- | src/libsystemd/sd-bus/bus-socket.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c index 253f41c636..64037e4fe0 100644 --- a/src/libsystemd/sd-bus/bus-socket.c +++ b/src/libsystemd/sd-bus/bus-socket.c @@ -22,7 +22,6 @@ #include "memory-util.h" #include "path-util.h" #include "process-util.h" -#include "rlimit-util.h" #include "signal-util.h" #include "stdio-util.h" #include "string-util.h" @@ -995,7 +994,7 @@ int bus_socket_exec(sd_bus *b) { if (r < 0) return -errno; - r = safe_fork_full("(sd-busexec)", s+1, 1, FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS, &b->busexec_pid); + r = safe_fork_full("(sd-busexec)", s+1, 1, FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_RLIMIT_NOFILE_SAFE, &b->busexec_pid); if (r < 0) { safe_close_pair(s); return r; @@ -1008,8 +1007,6 @@ int bus_socket_exec(sd_bus *b) { if (r < 0) _exit(EXIT_FAILURE); - (void) rlimit_nofile_safe(); - if (b->exec_argv) execvp(b->exec_path, b->exec_argv); else |