]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: implement pgid field of /proc/self/stat
authorAndreas Schwab <schwab@suse.de>
Tue, 20 May 2025 14:07:37 +0000 (16:07 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 28 May 2025 07:07:59 +0000 (08:07 +0100)
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <mvmfrgzcr4m.fsf@suse.de>

linux-user/syscall.c

index 23b901b71338d00a52378316367d9f65105e55d1..fc37028597c5157250444bc362f052737a0b8dc3 100644 (file)
@@ -8235,6 +8235,9 @@ static int open_self_stat(CPUArchState *cpu_env, int fd)
         } else if (i == 3) {
             /* ppid */
             g_string_printf(buf, FMT_pid " ", getppid());
+        } else if (i == 4) {
+            /* pgid */
+            g_string_printf(buf, FMT_pid " ", getpgrp());
         } else if (i == 19) {
             /* num_threads */
             int cpus = 0;