kernel: fix getpgid(pid != 0)
This commit is contained in:
parent
73af71ecf9
commit
a34dadba37
@ -537,7 +537,7 @@ static long sys_getpgid(pid_t pid) {
|
||||
if (pid == 0) {
|
||||
proc = (process_t*)this_core->current_process;
|
||||
} else {
|
||||
proc = NULL; process_from_pid(pid);
|
||||
proc = process_from_pid(pid);
|
||||
}
|
||||
|
||||
if (!proc) {
|
||||
|
Loading…
Reference in New Issue
Block a user