HomeFreeBSD

pwait: Add an option to print remaining processes

Description

pwait: Add an option to print remaining processes

  • On startup, insert all valid PIDs into a tree.
  • In our main loop, whenever a process terminates, remove its PID from the tree.
  • On exit, if the -p flag was specified, print the remaining PIDs.

MFC after: 3 days
Reviewed by: bcr, markj
Differential Revision: https://reviews.freebsd.org/D53293

Details

Provenance
desAuthored on Tue, Oct 28, 11:56 AM
Reviewer
bcr
Differential Revision
D53293: pwait: Add an option to print remaining processes
Parents
rGe12ec5f4338c: Revert "blocklist-helper: Silence a bogus pf warning"
Branches
Unknown
Tags
Unknown