Skip to content

Commit

Permalink
Clear task->vfork before sys_clone returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodore Dubois committed Jan 1, 2019
1 parent 6406cf3 commit bbf1eb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ dword_t sys_clone(dword_t flags, addr_t stack, addr_t ptid, addr_t tls, addr_t c
// FIXME this should stop waiting if a fatal signal is received
wait_for_ignore_signals(&vfork.cond, &vfork.lock, NULL);
unlock(&vfork.lock);
task->vfork = NULL;
cond_destroy(&vfork.cond);
}
return pid;
Expand Down

0 comments on commit bbf1eb4

Please sign in to comment.