getppid() implementation
This commit is contained in:
committed by
Balazs Gerofi bgerofi@riken.jp
parent
a5889fb5df
commit
86f2a9067b
@ -1348,6 +1348,11 @@ SYSCALL_DECLARE(getpid)
|
||||
return cpu_local_var(current)->ftn->pid;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(getppid)
|
||||
{
|
||||
return cpu_local_var(current)->ftn->parent->pid;
|
||||
}
|
||||
|
||||
void
|
||||
settid(struct process *proc, int mode, int newcpuid, int oldcpuid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user