summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/umount.c4
-rw-r--r--src/coredump/coredumpctl.c1
-rw-r--r--src/delta/delta.c1
-rw-r--r--src/login/inhibit.c1
4 files changed, 5 insertions, 2 deletions
diff --git a/src/core/umount.c b/src/core/umount.c
index fa9c15ca36..ff3e63710c 100644
--- a/src/core/umount.c
+++ b/src/core/umount.c
@@ -390,7 +390,7 @@ static int remount_with_timeout(MountPoint *m, char *options, int *n_failed) {
* fork a child process and set a timeout. If the timeout
* lapses, the assumption is that that particular remount
* failed. */
- r = safe_fork("(sd-remount)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_LOG, &pid);
+ r = safe_fork("(sd-remount)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_LOG|FORK_REOPEN_LOG, &pid);
if (r < 0)
return r;
if (r == 0) {
@@ -426,7 +426,7 @@ static int umount_with_timeout(MountPoint *m, bool *changed) {
* fork a child process and set a timeout. If the timeout
* lapses, the assumption is that that particular umount
* failed. */
- r = safe_fork("(sd-umount)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_LOG, &pid);
+ r = safe_fork("(sd-umount)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_LOG|FORK_REOPEN_LOG, &pid);
if (r < 0)
return r;
if (r == 0) {
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 09178d5035..6b697c37fc 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -932,6 +932,7 @@ static int run_gdb(sd_journal *j) {
goto finish;
if (r == 0) {
execlp("gdb", "gdb", exe, path, NULL);
+ log_open();
log_error_errno(errno, "Failed to invoke gdb: %m");
_exit(EXIT_FAILURE);
}
diff --git a/src/delta/delta.c b/src/delta/delta.c
index 645b0b2278..4fe89ff9b0 100644
--- a/src/delta/delta.c
+++ b/src/delta/delta.c
@@ -191,6 +191,7 @@ static int found_override(const char *top, const char *bottom) {
return r;
if (r == 0) {
execlp("diff", "diff", "-us", "--", bottom, top, NULL);
+ log_open();
log_error_errno(errno, "Failed to execute diff: %m");
_exit(EXIT_FAILURE);
}
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
index 22657f9eda..6b5d9c29b9 100644
--- a/src/login/inhibit.c
+++ b/src/login/inhibit.c
@@ -272,6 +272,7 @@ int main(int argc, char *argv[]) {
if (r == 0) {
/* Child */
execvp(argv[optind], argv + optind);
+ log_open();
log_error_errno(errno, "Failed to execute %s: %m", argv[optind]);
_exit(EXIT_FAILURE);
}