process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging

This commit is contained in:
Lennart Poettering
2018-01-04 13:27:26 +01:00
parent 799a960d1f
commit b6e1fff13d
23 changed files with 70 additions and 80 deletions
+1
View File
@@ -157,6 +157,7 @@ typedef enum ForkFlags {
FORK_DEATHSIG = 1U << 2,
FORK_NULL_STDIO = 1U << 3,
FORK_REOPEN_LOG = 1U << 4,
FORK_LOG = 1U << 5,
} ForkFlags;
int safe_fork_full(const char *name, const int except_fds[], size_t n_except_fds, ForkFlags flags, pid_t *ret_pid);