Feature or enhancement
Expose PIDFD_NONBLOCK as os.PIDFD_NONBLOCK to be used with os.waitid.
Pitch
pidfd_open returns a nonblocking file descriptor if PIDFD_NONBLOCK is supplied as flag. If the process
referred to by the file descriptor has not yet terminated,
then an attempt to wait on the file descriptor using
waitid(2) will immediately return the error EAGAIN rather
than blocking.
Linked PRs