Support pid of zero when calling waitpid

Make waitpid wait any process with the same pgid of the caller when
setting zero to the pid argument.
This commit is contained in:
Masamichi Takagi
2014-09-08 22:40:56 +09:00
parent ac40b96c24
commit b50e205a61
3 changed files with 9 additions and 1 deletions

View File

@ -144,6 +144,7 @@ struct fork_tree_node {
struct process *owner;
int pid;
int pgid;
struct fork_tree_node *parent;
struct list_head children;