diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-26 16:11:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-01 12:50:45 +0100 |
commit | 0672e2c6f84e0999ead8ea662360eb6bb8effe4c (patch) | |
tree | 9431e15187526dfee77c1409934634b47e4e7925 /src/activate | |
parent | 595225af7a4f663788d26b8720e994fed71f9410 (diff) | |
download | systemd-0672e2c6f84e0999ead8ea662360eb6bb8effe4c.tar.gz |
tree-wide: use FORK_RLIMIT_NOFILE_SAFE wherever possible
Similar to the previous commit: in many cases no further fd processing
needs to be done in forked of children before execve() or any of its
flavours are called. In those case we can use FORK_RLIMIT_NOFILE_SAFE
instead.
Diffstat (limited to 'src/activate')
-rw-r--r-- | src/activate/activate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c index 912772d590..9a83bc7f24 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -249,7 +249,7 @@ static int fork_and_exec_process(const char* child, char** argv, char **env, int if (!joined) return log_oom(); - r = safe_fork("(activate)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_LOG, &child_pid); + r = safe_fork("(activate)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_RLIMIT_NOFILE_SAFE|FORK_LOG, &child_pid); if (r < 0) return r; if (r == 0) { |