5 ms·
Thank you for documenting those gotchas. I know not being a library has different considerations, but some ideas I used in timeout(1) to kill a process group m
by pixelbeat__ 4y ago
Thank you for documenting those gotchas.
I know not being a library has different considerations, but some ideas I used in timeout(1) to kill a process group may be useful. Tricky things like using sigsuspend() to avoid signal handling races.
https://github.com/coreutils/coreutils/blob/master/src/timeout.c https://github.com/coreutils/coreutils/blob/master/src/timeo...
cgroups might be another avenue to explore, being more modern and so having less compatibility baggage