diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-27 21:49:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-04 13:27:26 +0100 |
commit | b6e1fff13dbfc1623de41b78bc525f410fb59b91 (patch) | |
tree | b920f51ea393852d2776aecaa0701293df8903a6 /src/fsck | |
parent | raw-clone: beef up raw_clone() wrapper a bit (diff) | |
download | systemd-b6e1fff13dbfc1623de41b78bc525f410fb59b91.tar.xz systemd-b6e1fff13dbfc1623de41b78bc525f410fb59b91.zip |
process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging
Diffstat (limited to 'src/fsck')
-rw-r--r-- | src/fsck/fsck.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 818d581c30..d2b7cf6e3e 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -392,11 +392,9 @@ int main(int argc, char *argv[]) { } } - r = safe_fork("(fsck)", FORK_RESET_SIGNALS|FORK_DEATHSIG, &pid); - if (r < 0) { - log_error_errno(r, "fork(): %m"); + r = safe_fork("(fsck)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_LOG, &pid); + if (r < 0) goto finish; - } if (r == 0) { char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1]; int progress_socket = -1; |