]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
notify: raise log level for safe_fork() 39661/head
authorMike Yuan <me@yhndnzj.com>
Mon, 10 Nov 2025 02:02:47 +0000 (03:02 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 10 Nov 2025 02:02:47 +0000 (03:02 +0100)
src/notify/notify.c

index 3035c9f6cfe176eac873d044741b953d2888570e..270d1b1f9ad5675d0dda136edbcc015127cf224f 100644 (file)
@@ -520,7 +520,7 @@ static int action_fork(char *const *_command) {
                         /* stdio_fds= */ (const int[]) { -EBADF, -EBADF, STDERR_FILENO },
                         /* except_fds= */ NULL,
                         /* n_except_fds= */ 0,
-                        /* flags= */ FORK_REARRANGE_STDIO,
+                        /* flags= */ FORK_REARRANGE_STDIO|FORK_LOG,
                         &child);
         if (r < 0)
                 return log_error_errno(r, "Failed to fork child in order to execute '%s': %m", c);