linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pidfd and O_NONBLOCK
@ 2020-08-11 18:12 Josh Triplett
  2020-08-11 20:10 ` Christian Brauner
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2020-08-11 18:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Christian Brauner, Jens Axboe, Michael Kerrisk, linux-doc

As far as I can tell, O_NONBLOCK has no effect on a pidfd. When calling
waitid on a pidfd for a running process, it always blocks unless you
provide WNOHANG.

I don't think anything depends on that behavior. Would it be possible to
make O_NONBLOCK on a pidfd cause waitid on a running process to return
EWOULDBLOCK?

This would make it easier to use pidfd in some non-blocking event loops.

- Josh Triplett

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-11 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-11 18:12 pidfd and O_NONBLOCK Josh Triplett
2020-08-11 20:10 ` Christian Brauner
2020-08-11 21:13   ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).