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/delta | |
parent | tree-wide: invoke rlimit_nofile_safe() before various exec{v,ve,l}() invocations (diff) | |
download | systemd-0672e2c6f84e0999ead8ea662360eb6bb8effe4c.tar.xz systemd-0672e2c6f84e0999ead8ea662360eb6bb8effe4c.zip |
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/delta')
-rw-r--r-- | src/delta/delta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index 328f5654e8..379226641e 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -169,7 +169,7 @@ static int found_override(const char *top, const char *bottom) { fflush(stdout); - r = safe_fork("(diff)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_CLOSE_ALL_FDS|FORK_LOG, &pid); + r = safe_fork("(diff)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_CLOSE_ALL_FDS|FORK_RLIMIT_NOFILE_SAFE|FORK_LOG, &pid); if (r < 0) return r; if (r == 0) { |