getppid() implementation

This commit is contained in:
bgerofi@riken.jp
2014-12-04 16:44:36 +09:00
committed by Balazs Gerofi bgerofi@riken.jp
parent a5889fb5df
commit 86f2a9067b
2 changed files with 6 additions and 1 deletions

View File

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