1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/linux/waitpid.md
Juri Dispan 14bb4a9221
switch_root, tailf, uuidparse, waitpid: add pages (#12108)
* switch_root, tailf, uuidparse, waitpid: add pages

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-01-23 12:56:57 +05:30

25 lines
541 B
Markdown

# waitpid
> Wait for the termination of arbitrary processes.
> See also: `wait`.
> More information: <https://manned.org/waitpid.1>.
- Sleep until all processes whose PIDs have been specified have exited:
`waitpid {{pid1 pid2 ...}}`
- Sleep for at most `n` seconds:
`waitpid --timeout {{n}} {{pid1 pid2 ...}}`
- Do not error if specified PIDs have already exited:
`waitpid --exited {{pid1 pid2 ...}}`
- Sleep until `n` of the specified processes have exited:
`waitpid --count {{n}} {{pid1 pid2 ...}}`
- Display help:
`waitpid -h`