]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machined: prefix child process name with 'sd'
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Nov 2018 13:48:47 +0000 (14:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Dec 2018 11:50:45 +0000 (12:50 +0100)
So far we followed to rule that child processes we fork off without
execve() are named "(sd-xyz)", but one child process didn't follow this.
Correct that.

src/machine/image-dbus.c

index 89df274544cbe939def4e7c427442d975cd02741..512e5282b93a16cf70343dc94083336a3a09f12d 100644 (file)
@@ -169,7 +169,7 @@ int bus_image_method_clone(
         if (pipe2(errno_pipe_fd, O_CLOEXEC|O_NONBLOCK) < 0)
                 return sd_bus_error_set_errnof(error, errno, "Failed to create pipe: %m");
 
-        r = safe_fork("(imgclone)", FORK_RESET_SIGNALS, &child);
+        r = safe_fork("(sd-imgclone)", FORK_RESET_SIGNALS, &child);
         if (r < 0)
                 return sd_bus_error_set_errnof(error, r, "Failed to fork(): %m");
         if (r == 0) {