• Raltoid@lemmy.world
    link
    fedilink
    arrow-up
    129
    ·
    edit-2
    6 days 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.

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      6 days ago

      Oh, p-lease, can force it my ass, Linux has never failed to shutdown on me when using plain obvious GUI method. windows - can easily hang on forever as long as computer stays powered. The point of all the memes is exactly insane windows defaults, not the things that can or can’t be done by someone with enough knowledge

    • JcbAzPx@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      Windows also has to worry about getting sued by another multinational conglomerate when some idiot loses the only copy if a super critical file because they were too lazy to save and forced their laptop to shutdown so they could pickup lunch.

    • derpgon@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago
      1. Linux programs either HAVE to be quick while receiving shutdown signal, otherwise the state will be fucked, work will be lost, and people will be mad, and program will stop being used.

      2. Clicking the Windows button to force shutdown will straight up kill the program and won’t care at all.

  • Ricky Rigatoni@lemm.ee
    link
    fedilink
    arrow-up
    18
    ·
    5 days 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.

      • letsgo@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 days ago

        Ever? Too many times. When I think I’ve told Windows Update “yes, do all the shit, yes it’s fine, yes I’m sure, yes you can do it, yes I really want you to do it, yes I’m sure I really want you to, yes I’m sure I’m sure, yes for the umpteenth fucking time” and switched off my monitor to go home for the weekend, the number of times I’ve come in on a Monday morning just to find I have to click “yes” yet again then have to sit there watching it grind out its updates.

        I just wish they’d add a checkbox, off by default, that says “yes you can do it all, just stop asking stupid fucking questions” that I can click and go home. But for some reason Microwank insist I have to sit there watching that fucking update percentage creep up then endlessly sit at “100% all is done, please wait” for no reason whatsoever.

        Oh yeah and there always seem to be way more reboots needed when BitLocker is active. I’m sure 1 reboot is the norm with occasional 2’s. But with BL it’s usually 5-6 reboots.

        I used to work at a place where MS would raise tickets with us and I always wanted to give them the WU treatment. But professionalism always got in the way of “This ticket is 100% complete, you must close and reopen it to continue”.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    47
    ·
    edit-2
    6 days ago

    Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.

    • Agent641@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      6 days ago

      “Mmm, that didn’t work, try again later I guess? Just stop bothering me with your petty needs and get back to generating monetizable data that I can harvest.”

  • gorlak@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    6 days 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.

    • BobSentMe@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

      In As400, you type PWRDWNSYS *IMMED.

      Then you pray it comes back up in a timely manner.