cm0002@infosec.pub to Programmer Humor@programming.dev · 2 months agoClosing programsinfosec.pubimagemessage-square150fedilinkarrow-up1783
arrow-up1783imageClosing programsinfosec.pubcm0002@infosec.pub to Programmer Humor@programming.dev · 2 months agomessage-square150fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up10·2 months 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-up3·2 months 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.