qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux-user: implement pgid field of /proc/self/stat
@ 2025-05-20 14:07 Andreas Schwab
  2025-05-24 13:44 ` Richard Henderson
  2025-05-27  9:00 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Schwab @ 2025-05-20 14:07 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: qemu-devel

Signed-off-by: Andreas Schwab <schwab@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;
-- 
2.49.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] linux-user: implement pgid field of /proc/self/stat
  2025-05-20 14:07 [PATCH] linux-user: implement pgid field of /proc/self/stat Andreas Schwab
@ 2025-05-24 13:44 ` Richard Henderson
  2025-05-27  9:00 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2025-05-24 13:44 UTC (permalink / raw)
  To: qemu-devel

On 5/20/25 15:07, Andreas Schwab wrote:
> Signed-off-by: Andreas Schwab <schwab@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.henderson@linaro.org>

r~


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] linux-user: implement pgid field of /proc/self/stat
  2025-05-20 14:07 [PATCH] linux-user: implement pgid field of /proc/self/stat Andreas Schwab
  2025-05-24 13:44 ` Richard Henderson
@ 2025-05-27  9:00 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2025-05-27  9:00 UTC (permalink / raw)
  To: qemu-devel

On 5/20/25 15:07, Andreas Schwab wrote:
> Signed-off-by: Andreas Schwab <schwab@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;

Queued, thanks.

r~


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-27  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 14:07 [PATCH] linux-user: implement pgid field of /proc/self/stat Andreas Schwab
2025-05-24 13:44 ` Richard Henderson
2025-05-27  9:00 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).