3 ms·
The author forgot an important thing to remember about signals: Signals received by a PARENT process are propagated to all it's CHILD processes. > Should You
by welder 3y ago
The author forgot an important thing to remember about signals:
Signals received by a PARENT process are propagated to all it's CHILD processes.
> Should You Be Scared of Unix Signals?
You should never be scared of anything in life... as long as you've properly prepared, researched, and tested.
- Joker_vD 3y ago> Signals received by a PARENT process are propagated to all it's CHILD processes. They are most definitely not, unless the parent does implement such propagation on its own.
- tuyiown 3y ago> unless the parent does implement such propagation or if the signal is send to 0, or -PGID or if signal target PID is a group leader / session id or any other subtleties But you're right the general case is that children won't be interrupted.
- fanf2 3y agoRight. Perhaps welder is confused by the behaviour of process groups and controlling terminals.
- welder 3y agoYep, my bad. I forgot it's only because systemd defaults to control-group.
- sunshowers 3y ago> Signals received by a PARENT process are propagated to all it's CHILD processes. This is not true, outside of the context of process groups or if the parent implements this manually (edit: or some OS-specific features). I gave a talk on this at RustConf this year and the video for it should be out soon, but here are the slides: https://docs.google.com/presentation/d/e/2PACX-1vQuV0pYyWQulFbnRHfgvtHqQ_ZVyrnkmfQxT0eQfjEpVjnptUIG8uMx9FuUDz3wxtWqVN5QA9C4biZT/pub?start=false&loop=false&delayms=3000 https://docs.google.com/presentation/d/e/2PACX-1vQuV0pYyWQul...