• @NeatNit@discuss.tchncs.de
    link
    fedilink
    779 days ago

    Is this even true? I am fairly sure that Linux also has a graceful shutdown process, but I’ll admit I haven’t looked into it.

    • macniel
      link
      fedilink
      669 days ago

      yeah we have SIGTERM for graceful and SIGKILL for not so graceful shutting down a process.

      • palordrolap
        link
        fedilink
        309 days ago

        In order of decreasing politeness: 1, 2, 15, 9 = HUP, INT, TERM, KILL = “Please stop”, “Quit it”, “I’m warning you” and “BANG”

          • palordrolap
            link
            fedilink
            109 days ago

            True. I think of it more as a semantic shift. In the old days, processes would actually quit and some other process would resurrect it as necessary, but then someone had the idea of having some processes catch the HUP and do all that itself without actually bothering any other processes.

            And the implementation might actually involve an exec of the process’ own executable, meaning that it actually does self-terminate, but it leaves a child in its place.