summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-11-08 09:09:26 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-11-08 09:09:26 +0000
commit37bb48367998c0be2f8c72d721837dad4be5ae7b (patch)
tree13693dc8f2ef07d2346275020e67f9f5c512abc9 /tools
parent9349a52f4187301776450d07f77fbf8af30d7c87 (diff)
downloadFreeBSD-src-37bb48367998c0be2f8c72d721837dad4be5ae7b.zip
FreeBSD-src-37bb48367998c0be2f8c72d721837dad4be5ae7b.tar.gz
Add support for queueing SIGCHLD same as other UNIX systems did.
For each child process whose status has been changed, a SIGCHLD instance is queued, if the signal is stilling pending, and process changed status several times, signal information is updated to reflect latest process status. If wait() returns because the status of a child process is available, pending SIGCHLD signal associated with the child process is discarded. Any other pending SIGCHLD signals remain pending. The signal information is allocated at the same time when proc structure is allocated, if process signal queue is fully filled or there is a memory shortage, it can still send the signal to process. There is a booting time tunable kern.sigqueue.queue_sigchild which can control the behavior, setting it to zero disables the SIGCHLD queueing feature, the tunable will be removed if the function is proved that it is stable enough. Tested on: i386 (SMP and UP)
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud