Open mitar opened 1 year ago
I don't see any API change here, so this doesn't have to be a proposal. Taking it out of the proposal process.
OK, I made a draft of the implementation in #60461 to test how would this work out. It is not yet perfect (see comments on Gerrit), but it gives me/us something to play around. I think it works pretty nice.
Change https://go.dev/cl/498615 mentions this issue: os/exec: use pidfd for waiting and signaling of processes
My understanding is that in
blockUntilWaitable
thewaitid
call blocks the thread you call it on. On Linux, we could instead usepidfd_open
and then monitor the file descriptor with epool:I think this would then not block the thread?