DOKK / manpages / debian 11 / extrace / pwait.1.en
PWAIT(1) General Commands Manual PWAIT(1)

pwaitwait for processes to terminate

pwait [-v] [-c] pid ...

pwait waits until each of the given processes has terminated.

The options are as follows:

Print the exit status when each process terminates.
Return 111 if any process exited non-successfully.

The pwait utility exits 0 on success, and >0 if an error occurs.

Invalid pids elicit a warning message but are otherwise ignored.

Check these prerequisites if you see this error:

binding sk_nl error: Operation not permitted

pwait requires special permissions to run, either root or the Linux CAP_NET_ADMIN capability.

pwait only works on Linux kernels with the kernel options

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

extrace(1), kill(1), pkill(1), ps(1), wait(1)

Leah Neukirchen <leah@vuxu.org>

Built upon code from FreeBSD pwait written by Jilles Tjoelker.

pwait is licensed under the terms of the GPLv2.

September 17, 2018 Debian