Name

wait

wait [-nohang] [-untraced] [-pgroup] [pid]

Wait for a child process with process ID pid to terminate (or any process if pid is omitted).

Options

-nohang

Don’t block waiting on the process to terminate.

-untraced

Return status of other child processes.

-pgroup

Wait on any processes in process group.

The command returns a list with three elements: the process ID of the process that terminated, the reason code (EXIT, SIG, SIGSTP, or STOP), and the numeric exit code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset