Open
Description
My understanding is that in blockUntilWaitable
the waitid
call blocks the thread you call it on. On Linux, we could instead use pidfd_open
and then monitor the file descriptor with epool:
When the process that it refers to terminates, these interfaces (e.g., epool) indicate the file descriptor as readable.
I think this would then not block the thread?