execline
Software
skarnet.org

The wait program

wait waits for a set of children, then executes a program.

Interface

In an execlineb script:

     wait [ -a | -o ] [ -u ] [ -t timeout ] { [ pids... ] } prog...

Options

Environment variables

If the -u option has been given, wait execs into prog... with the ! and ? environment variables unset. Same thing if an error occurred before wait could successfully reap a zombie.

Otherwise, the ! environment variable is set to the pid of a reapt zombie, and the ? environment variable is set to its exit code. Here is how wait decides what pid to report:

Notes