summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-27 00:55:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-27 00:55:42 +0100
commitd7964b08211f5221e73400ed36093d44f9455fff (patch)
treef28fd5a70e5e60b838ed9805eab003f9899eaf32
parenta14bade6c6c17df9c0877c30e4903a1e2d8175fd (diff)
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.
-rw-r--r--proc/wait.c5
1 files changed, 5 insertions, 0 deletions
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;
}