diff options
author | mike <mike@FreeBSD.org> | 2002-06-01 18:37:46 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-06-01 18:37:46 +0000 |
commit | 1b681bdeaabdef171893adfd1d525d5c71ee9416 (patch) | |
tree | b739dc87bdda20993d6e29c623c3bd323718010c /sys/kern/kern_sig.c | |
parent | dee070ee6ebd2cd6a3ee6cbb6a1b2ccbc675c27e (diff) | |
download | FreeBSD-src-1b681bdeaabdef171893adfd1d525d5c71ee9416.zip FreeBSD-src-1b681bdeaabdef171893adfd1d525d5c71ee9416.tar.gz |
Add POSIX.1-2001 WCONTINUED option for waitpid(2). A proc flag
(P_CONTINUED) is set when a stopped process receives a SIGCONT and
cleared after it has notified a parent process that has requested
notification via waitpid(2) with WCONTINUED specified in its options
operand. The status value can be checked with the new WIFCONTINUED()
macro.
Reviewed by: jake
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index e98eb73..988478d 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1436,6 +1436,8 @@ psignal(p, sig) } } } else { + p->p_flag |= P_CONTINUED; + wakeup((caddr_t)p->p_pptr); if (td->td_wchan == NULL) goto run; p->p_stat = SSLEEP; |