Skip to main content

Module child

Module child 

Source
Expand description

Waiting on a child process without polling it.

An ExitWatch sleeps until the child exits or its Bell rings, so a supervisor reacts to other events without looking at the child on a timer. On Linux it waits on a pidfd, which becomes readable when the child exits without reaping it; where no such handle exists, ExitWatch::wait returns after at most 100 ms.

Structsยง

Bell
ExitWatch
Sleeps until a child exits, its Bell rings or a deadline passes.