minus-squaredeadcream@sopuli.xyztoProgrammer Humor@programming.dev•Thinking I could clean up my files in a SIGINT handlerlinkfedilinkarrow-up1·5 months agoAFAIK kernel itself doesn’t send any signals to processes on shutdown/reboot, it just stops executing them. This is a job service manager (e.g. systemd) that terminates processes using SIGTERM before asking kernel to shutdown. linkfedilink
minus-squaredeadcream@sopuli.xyztoProgrammer Humor@programming.dev•Thinking I could clean up my files in a SIGINT handlerlinkfedilinkarrow-up0·5 months agoThat’s why you launch them through systemd. linkfedilink
AFAIK kernel itself doesn’t send any signals to processes on shutdown/reboot, it just stops executing them. This is a job service manager (e.g. systemd) that terminates processes using SIGTERM before asking kernel to shutdown.