]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/async: prefix process name with sd-
authorMike Yuan <me@yhndnzj.com>
Tue, 11 Jul 2023 04:06:14 +0000 (12:06 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 11 Jul 2023 04:08:09 +0000 (12:08 +0800)
src/shared/async.c

index b7ecb9c4b76d83bcdd947207b2120e9d99402568..1cf1936d4b1740bf240339496cb088c69409c9ce 100644 (file)
@@ -41,7 +41,7 @@ int asynchronous_sync(pid_t *ret_pid) {
 static int close_func(void *p) {
         unsigned v = PTR_TO_UINT(p);
 
-        (void) prctl(PR_SET_NAME, (unsigned long*) "(close)");
+        (void) prctl(PR_SET_NAME, (unsigned long*) "(sd-close)");
 
         /* Note: ðŸ’£ This function is invoked in a child process created via glibc's clone() wrapper. In such
          *       children memory allocation is not allowed, since glibc does not release malloc mutexes in