3 ms·
How to avoid unwanted wakeups when killing lots of processes
- codedokode 9y agoThere is a problem though: the code wakes up all the processes with SIGCONT even if some of them were stopped by some other program (not by systemd) intentionally.
- JdeBP 9y agoWhich of those processes will not have a pending SIGTERM/SIGKILL action as their very first thing to do once continued?
- dozzie 9y agoThere is a continuation post the next day: https://utcc.utoronto.ca/~cks/space/blog/programming/CodeReadingNarrowness https://utcc.utoronto.ca/~cks/space/blog/programming/CodeRea... It's because there are three or four different things that could be the reason behind the code he talks about, not just what he described in this post.