kernel: fix getpgid(pid != 0)

This commit is contained in:
K. Lange 2021-08-20 17:10:35 +09:00
parent 73af71ecf9
commit a34dadba37

View File

@ -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) {