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.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.