PWAIT(1)
π PWAIT β wait for processes to terminate
okay bestie so like. pwait is a whole vibe and it's lowkey the chillest little command in the General Commands Manual section. it justβ¦ waits. that's it. that's the job. β¨
π¦ SYNOPSIS
pwait [-v] [-c] pid ...
πΈ DESCRIPTION
pwait sits there and waits until each of the given processes has terminated. like a patient bestie holding your bag outside the dressing room. no cap. π
the options are as follows, and yes we're going through all of them because there are literally two and they're both important:
β¨ OPTIONS
-vβ prints the exit status of each process when it terminates. so you actually get to see what happened instead of just vibing in silence. π-cβ returns111if any process exited non-successfully. it's giving "snitch mode" and honestly? iconic. π₯
π EXIT STATUS
the pwait utility exits 0 on success, and >0 if an error occurs.
invalid pids elicit a warning message but are otherwise ignored β so like, it'll side-eye them but it won't make it a whole thing. π
π ERRORS
if you see this error, check these prerequisites, bestie:
binding sk_nl error: Operation not permitted
pwait requires special permissions to run, either root or the Linux CAP_NET_ADMIN capability. no permission no party, fr fr.
also pwait only works on Linux kernels with the kernel options:
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
so if your kernel doesn't have those, it's over. genuinely over. don't fight it. π
π«Ά SEE ALSO
extrace(1), kill(1), pkill(1), ps(1), wait(1)
π AUTHORS
Leah Neukirchen <leah@vuxu.org>
built upon code from FreeBSD pwait written by Jilles Tjoelker. shoutout to the OGs. π«Ά
π LICENSE
pwait is licensed under the terms of the GPLv2.
and that's the whole page, bestie π this one came from Debian, dated September 17, 2018 β go forth and wait on some processes, you absolute main character. β¨π
π¦ where this page comes from
- debian bookworm: extrace 0.7-2 Β· GPL-2.0-or-later
- debian trixie: extrace 0.7-2 Β· GPL-2.0-or-later
- nixos 26.05: extrace 0.9
- nixpkgs unstable: extrace 0.9
- ubuntu jammy: extrace 0.7-2 Β· GPL-2.0-or-later
- ubuntu noble: extrace 0.7-2 Β· GPL-2.0-or-later
- ubuntu resolute: extrace 0.7-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: extrace 0.7-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms