Module reaper

Module reaper 

Source
Expand description

The underlying system reaper.

There are two backends:

  • signal, which waits for SIGCHLD.
  • wait, which waits directly on a process handle.

β€œwait” is preferred, but is not available on all supported Linuxes. So we test to see if pidfd is supported first. If it is, we use wait. If not, we use signal.

ModulesΒ§

signal πŸ”’
A version of the reaper that waits for a signal to check for process progress.
wait πŸ”’
A version of the reaper that waits on some polling primitive.

MacrosΒ§

cfg_signal πŸ”’
Enable signals.
cfg_wait πŸ”’
Enable the waiting reaper.

EnumsΒ§

ChildGuard πŸ”’
The wrapper around a child.
Lock πŸ”’
A lock on the reaper.
Reaper πŸ”’
The underlying system reaper.