Replace signals!
Replace signals!
Posted Jan 10, 2022 19:25 UTC (Mon) by NYKevin (subscriber, #129325)In reply to: Replace signals! by ibukanov
Parent article: VSTATUS, with or without SIGINFO
I'm not really a fan of libraries randomly forking off temporary processes without the application code's knowledge or consent, to be honest. Sure, if a library is specifically designed to do something like implement a process pool, I suppose it's unavoidable, but if you're just forking off a process because you can, then maybe don't do that.
Posted Jan 11, 2022 11:23 UTC (Tue)
by ibukanov (subscriber, #3942)
[Link]
As for pselect if one writes to a pipe in the signal handler, then one does not need that. I wish that somebody would come up with a flag or something not to keep signals blocked across exec similarly to noexec flags to file descriptors, but I guess that writing to a pipe from a signal handler is so common knowledge that nobody bothered.
Replace signals!