---
name: "pwait"
section: "1"
platform: "linux"
package: "extrace"
version: "0.7-2"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/pwait"
---

# pwait(1)

wait for processes to terminate

## NAME

**pwait** – wait for processes to terminate

## SYNOPSIS

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

## DESCRIPTION

**pwait** waits until each of the given processes has terminated.

The options are as follows:

- **-v**

  Print the exit status when each process terminates.

- **-c**

  Return 111 if any process exited non-successfully.

## 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.

## ERRORS

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
```

## SEE ALSO

[extrace(1)](/extrace/1.md), [kill(1)](/kill/1.md), [pkill(1)](/pkill/1.md), [ps(1)](/ps/1.md), [wait(1)](/wait/1.md)

## AUTHORS

Leah Neukirchen ⟨*leah@vuxu.org*⟩

Built upon code from FreeBSD **pwait** written by Jilles Tjoelker.

## LICENSE

**pwait** is licensed under the terms of the GPLv2.
