WAITPID(1)
โจ WAITPID(1) โจ
okay so bestie, we're in the User Commands corner of the waitpid manual page and honestly? it's giving "small utility, big main character energy" ๐
๐ธ NAME ๐ธ
waitpid โ the lil utility that just... waits for arbitrary processes. that's it. that's the whole job. she waits. ๐ซถ
๐ฆ SYNOPSIS ๐ฆ
waitpid [-v] [--timeout|-t seconds] PID[:inode]...
like literally just hand her some PIDs and she'll stand there politely until they're gone โจ
๐ DESCRIPTION ๐
waitpid is a simple command that waits for arbitrary non-child processes. not her kids, not her problem, but she'll wait anyway because she's a queen ๐
She exits once all the processes whose PIDs you passed as arguments have exited. every single one. she does not leave early. she is committed. ๐
Optionally, you can address a process with the format PID:inode. The inode identifies the unique process's file descriptor โ it's like a process's little fingerprint so you know you're waiting on the right one and not some impostor ๐ต๏ธโโ๏ธ
To retrieve a process's inode number you can use the getino(1) utility. go get that number, bring it back, and drop it in with a colon. iykyk ๐
๐ OPTIONS ๐
-v,--verboseโ be more verbose. she'll tell you more about what's happening instead of just silently standing there ๐ฌ-t,--timeoutseconds โ maximum wait time. she'll only wait this long, then she's out โ-e,--exitedโ don't error on already exited PIDs. like if they already left the party before you got there, no big deal, she's not gonna be dramatic about it ๐-c,--countcount โ number of process exits to wait for. you pick the number, she counts them down ๐ข-h,--helpโ display help text and exit. the classic "explain yourself" move ๐-V,--versionโ display version and exit. she'll tell you who she is โญ
๐ EXIT STATUS ๐
waitpid has the following exit status values, and bestie, you need to know these:
0โ success ๐ she waited, everything worked, slay1โ unspecified failure ๐ญ something went wrong, nobody's saying what2โ system does not provide necessary functionality ๐ซ your system simply cannot, it's not giving what needs to be given3โ timeout expired โฐ the clock ran out, she's done waiting, periodt
๐ AUTHORS ๐
Thomas Weiรschuh <thomas@t-8ch.de> โ the icon who made this happen ๐ซถ
๐ SEE ALSO ๐
waitpid(2) wait(1P) getino(1)
go read those too, they're all part of the same little universe ๐
๐ REPORTING BUGS ๐
Found a bug? bestie, tell someone! For bug reports, use the issue tracker:
<https://github.com/util-linux/util-linux/issues>
she wants to be better and she needs your help to do it ๐ฅบ
๐ง AVAILABILITY ๐ง
The waitpid command is part of the util-linux package, which can be downloaded from the Linux Kernel Archive:
<https://www.kernel.org/pub/linux/utils/util-linux/>
go get it, it's free, it's iconic โจ
and that's the whole page bestie ๐ this was util-linux 2.42.4 vibes from 2026-09-21 โ no cap, she waits, she slays, she exits cleanly ๐๐
โจ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms