• Raltoid@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago
    1. Linux normally does a nice shutdown as well, unless you force it.

    2. You can force it on windows if you really want.

    I’m so tired of linux memes posted/made by people who don’t know much about windows or linux.

  • Ricky Rigatoni@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Windows: Has a complex and graceful shutdown process to make sure programs never close if there’s a problem with them and your computer just stalls on shutdown until you hold down the power button and completely void out the purpose of the graceful shutdown.

  • NeatNit@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    4 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@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

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

      • Russ@bitforged.space
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        If you hit Ctrl Alt Delete very quickly in succession (I believe it’s 7 times in a row) it will bail out from a stop job and proceed with shutting down

        Learned that trick because I was so tired of seeing that occur ha. Along that research I swear I recall seeing that it’s a KDE/SDDM issue but I might be getting some wires crossed on that (and thus, don’t quote me/take my word on that 😅)

  • Realitätsverlust@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    Linux does give every application time to shut down correctly, but unlike windows, it won’t wait for ages until every process is down. Linux WILL shut down in a certain timeframe, whereas windows waits for years if necessary. In my old job, we all had to use windows and I had times where I clicked shut down, turned off my monitor, grabbed my stuff, left and in the next morning, the PC was still on because Notepad refused to just close lmao.

    • WIZARD POPE💫@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      That is what infuriates me so much. Instead of just killing the process after 5 mins of waiting it just cancels the shutdown. Like fuck off with that shit.

  • astrsk@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    If your app doesn’t respond to SIGTERM gracefully, you need to fix your app. The system did its job as documented.

  • hector@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    Linux is actually great if you need to implement graceful shutdown with signals – I love it all around :)))

  • gorlak@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    Except Windows doesn’t. You can send WM_CLOSE, but that may not actually bail out of the core loop. PostQuitMessage() works better for some apps, but not at all for windowless CONSOLE subsystem processes. Windows also has a lot of special behavior around generating signals in other processes. It’s a mess.

    Like, every time I reboot the reboot UI complains about mysterious, unnamed processes that take suspiciously long to quit.

    Having the kernel yank the process out of existence with prejudice is definitely the way to go as apps should be hardened for crashing, anyway.