qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user: fill ppid field in /proc/self/stat


From: Laurent Vivier
Subject: Re: [PATCH] linux-user: fill ppid field in /proc/self/stat
Date: Wed, 7 Jul 2021 21:07:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Le 21/06/2021 à 11:32, Andreas Schwab a écrit :
> 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 974dd46c9a..dababe463c 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -7940,6 +7940,9 @@ static int open_self_stat(void *cpu_env, int fd)
>              gchar *bin = g_strrstr(ts->bprm->argv[0], "/");
>              bin = bin ? bin + 1 : ts->bprm->argv[0];
>              g_string_printf(buf, "(%.15s) ", bin);
> +        } else if (i == 3) {
> +            /* ppid */
> +            g_string_printf(buf, FMT_pid " ", getppid());
>          } else if (i == 27) {
>              /* stack bottom */
>              g_string_printf(buf, TARGET_ABI_FMT_ld " ", 
> ts->info->start_stack);
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]