From bbf1eb46f5a138a2529ff7577f6ab4fb2fca251d Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Tue, 1 Jan 2019 15:08:04 -0800 Subject: [PATCH] Clear task->vfork before sys_clone returns --- kernel/fork.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/fork.c b/kernel/fork.c index b8f89fb2d3..9ef5845452 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -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;