• pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      11 hours ago

      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.

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 hours ago

      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.