waitpid - utility to wait for arbitrary processes
waitpid is a simple command to wait for arbitrary non-child processes.
It exits after all processes whose PIDs have been passed as arguments have exited.
- -v, --verbose
-
Be more verbose.
- -t, --timeout seconds
-
Maximum wait time.
- -e, --exited
-
Don’t error on already exited PIDs.
- -c, --count count
-
Number of process exits to wait for.
waitpid has the following exit status values:
- 0
-
success
- 1
-
unspecified failure
- 2
-
system does not provide necessary functionality
- 3
-
timeout expired