diff options
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; |