• ramble81@lemm.ee
        link
        fedilink
        arrow-up
        13
        ·
        3 months ago

        You know I’ve known for decades that -9 is basically “nuke it from orbit”, but does anyone know what the “9” actually means or where it came from?

        • lad@programming.dev
          link
          fedilink
          English
          arrow-up
          22
          ·
          3 months ago

          It’s the number of the signal sent, 9 is for SIGKILL. You can send various signals with kill, and depending on how application was made it may react on all signals with dying, or meaningfully process most of them. Afaik, SIGKILL can’t be processed by the app, and it always means just that: “die already”.

          Checked in Wikipedia, that’s about right but there are more details I left out, mostly because didn’t know about them, too: POSIX signals

            • jaybone@lemmy.world
              link
              fedilink
              arrow-up
              7
              ·
              3 months ago

              In languages like C, your application code can register what is called a signal handler. These functions get called when the process receives a signal. You could do something like reload a config file for example, without the user needing to stop and restart the process.

        • dohpaz42@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          edit-2
          3 months ago

          You can use kill -l (lowercase L) to see a list of signals. But IIRC it’s the same as -KILL.

          EDIT: fixed the signal name.

    • tate@lemmy.sdf.org
      link
      fedilink
      arrow-up
      34
      ·
      3 months ago

      Many here will be seeing this for the first time. For others it will be a fun reminder of something they haven’t seen for a long time. Still others will find it to be the same old tired shit they’re sick of.

      When you see the same old tired shit on Lemmy (or any social media), just move on. There will be plenty that is new to you.

    • TexMexBazooka@lemm.ee
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      3 months ago

      We’re gonna put it on a scheduled repost loop, with it being stickied for at least an hour every post. A different hour each time too.