cm0002@infosec.pub to Programmer Humor@programming.dev · 11 hours agoClosing programsinfosec.pubimagemessage-square66fedilinkarrow-up1378
arrow-up1378imageClosing programsinfosec.pubcm0002@infosec.pub to Programmer Humor@programming.dev · 11 hours agomessage-square66fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up8·9 hours agoHistorical context, delivery, and handling. HUP—hang up—is sent to indicate the TTY is closed. TERM—terminate— is sent by request. What happens when received is usually up to the process. Most of them just leave the defaults, which is to exit.
minus-squareEthan@programming.devlinkfedilinkEnglisharrow-up2·7 hours agoThey’re different signals. The default handling is the same - terminate - but they’re triggered by different things and (if the process handles them) handled by separate handlers.
How’s that differ from
SIGHUP?Historical context, delivery, and handling.
HUP—hang up—is sent to indicate the TTY is closed.
TERM—terminate— is sent by request.
What happens when received is usually up to the process. Most of them just leave the defaults, which is to exit.
They’re different signals. The default handling is the same - terminate - but they’re triggered by different things and (if the process handles them) handled by separate handlers.