mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 20:47:03 +00:00
Update cheatsheets
This commit is contained in:
30
linux/waitpid
Normal file
30
linux/waitpid
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user