On 5/20/25 15:07, Andreas Schwab wrote:
Signed-off-by: Andreas Schwab <sch...@suse.de>
---
  linux-user/syscall.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8820ca4dfd..5536e364dc 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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;

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to