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, --timeout seconds โ€” 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, --count count โ€” 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, slay
  • 1 โ€” unspecified failure ๐Ÿ˜ญ something went wrong, nobody's saying what
  • 2 โ€” system does not provide necessary functionality ๐Ÿšซ your system simply cannot, it's not giving what needs to be given
  • 3 โ€” 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