From d7964b08211f5221e73400ed36093d44f9455fff Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 27 Dec 2020 00:55:42 +0100 Subject: proc: Also send SIGCHLD on child restart * proc/wait.c (S_proc_mark_cont): When parent has not set nostopcld, send a SIGCHLD with CLD_CONTINUED. --- proc/wait.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proc/wait.c') diff --git a/proc/wait.c b/proc/wait.c index 8883d458..3c6c8d06 100644 --- a/proc/wait.c +++ b/proc/wait.c @@ -292,7 +292,12 @@ S_proc_mark_cont (struct proc *p) { if (!p) return EOPNOTSUPP; + p->p_stopped = 0; + + if (!p->p_parent->p_nostopcld) + send_signal (p->p_parent->p_msgport, SIGCHLD, CLD_CONTINUED, p->p_parent->p_task); + return 0; } -- cgit v1.2.3