HomeFreeBSD

Add support for queueing SIGCHLD same as other UNIX systems did.
rS152185Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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)

Details

Provenance
davidxuAuthored on
Parents
rS152184: Simplify setting the link-level address.
Branches
Unknown
Tags
Unknown

Event Timeline