• @NeatNit@discuss.tchncs.de
    link
    fedilink
    152 months 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
      132 months ago

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

      • palordrolap
        link
        fedilink
        92 months 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
            42 months 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.