mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 15:42:09 -06:00
linux-user: implement pgid field of /proc/self/stat
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>
This commit is contained in:
parent
556d05d1e2
commit
19f036726a
1 changed files with 3 additions and 0 deletions
|
@ -8235,6 +8235,9 @@ static int open_self_stat(CPUArchState *cpu_env, int fd)
|
||||||
} else if (i == 3) {
|
} else if (i == 3) {
|
||||||
/* ppid */
|
/* ppid */
|
||||||
g_string_printf(buf, FMT_pid " ", getppid());
|
g_string_printf(buf, FMT_pid " ", getppid());
|
||||||
|
} else if (i == 4) {
|
||||||
|
/* pgid */
|
||||||
|
g_string_printf(buf, FMT_pid " ", getpgrp());
|
||||||
} else if (i == 19) {
|
} else if (i == 19) {
|
||||||
/* num_threads */
|
/* num_threads */
|
||||||
int cpus = 0;
|
int cpus = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue