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:
@ -144,6 +144,7 @@ struct fork_tree_node {
|
||||
|
||||
struct process *owner;
|
||||
int pid;
|
||||
int pgid;
|
||||
|
||||
struct fork_tree_node *parent;
|
||||
struct list_head children;
|
||||
|
||||
Reference in New Issue
Block a user