aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-27 21:49:19 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-04 13:27:26 +0100
commitb6e1fff13dbfc1623de41b78bc525f410fb59b91 (patch)
treeb920f51ea393852d2776aecaa0701293df8903a6 /src/remount-fs/remount-fs.c
parentraw-clone: beef up raw_clone() wrapper a bit (diff)
downloadsystemd-b6e1fff13dbfc1623de41b78bc525f410fb59b91.tar.gz
systemd-b6e1fff13dbfc1623de41b78bc525f410fb59b91.tar.bz2
systemd-b6e1fff13dbfc1623de41b78bc525f410fb59b91.zip
process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging
Diffstat (limited to 'src/remount-fs/remount-fs.c')
-rw-r--r--src/remount-fs/remount-fs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c
index 1f0397cf6..c61777c3f 100644
--- a/src/remount-fs/remount-fs.c
+++ b/src/remount-fs/remount-fs.c
@@ -87,11 +87,9 @@ int main(int argc, char *argv[]) {
log_debug("Remounting %s", me->mnt_dir);
- r = safe_fork("(remount)", FORK_RESET_SIGNALS|FORK_DEATHSIG, &pid);
- if (r < 0) {
- log_error_errno(r, "Failed to fork: %m");
+ r = safe_fork("(remount)", FORK_RESET_SIGNALS|FORK_DEATHSIG|FORK_LOG, &pid);
+ if (r < 0)
goto finish;
- }
if (r == 0) {
/* Child */