this post was submitted on 19 Apr 2025
7 points (88.9% liked)

linuxmemes

31196 readers
1286 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    all 35 comments
    sorted by: hot top controversial new old
    [–] rickyrigatoni@lemm.ee 2 points 1 year ago (1 children)

    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.

    [–] joel_feila@lemmy.world 2 points 1 year ago

    Ever tell a pc to shut down and come after work and it's still waiting for click a box.

    [–] raltoid@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (3 children)
    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.

    [–] derpgon@programming.dev 1 points 1 year 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.

    [–] LouSlash@sh.itjust.works 0 points 1 year ago (1 children)

    You can force it on windows if you really want.

    Please elaborate

    [–] flambonkscious@sh.itjust.works 1 points 1 year ago (1 children)

    Shutdown.exe -r -t 00 -f

    Fast , no mucking around with graceful exiting of stuff. Kicks it in the teefs

    [–] criticon@lemmy.ca 1 points 1 year ago

    Some clarification of the command

    -r #restart

    -s #shutdown

    -t 00 #wait 0 seconds

    -f #forced

    [–] HelloRoot@lemy.lol 1 points 1 year ago* (last edited 1 year ago) (1 children)
    [–] vfscanf@discuss.tchncs.de 0 points 1 year ago (1 children)
    [–] russjr08@bitforged.space 1 points 1 year 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 πŸ˜…)

    The kernel giveth, the kernel taketh away

    [–] NeatNit@discuss.tchncs.de 1 points 1 year ago (1 children)

    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.

    [–] DmMacniel@feddit.org 1 points 1 year ago

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

    [–] astrsk@fedia.io 1 points 1 year ago

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

    [–] Realitaetsverlust@lemmy.zip 1 points 1 year ago (1 children)

    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 1 points 1 year ago (1 children)

    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.

    [–] InFerNo@lemmy.ml 1 points 1 year ago (2 children)

    Depending on the use case, that can be a good thing or a bad thing

    [–] meliaesc@lemmy.world 1 points 1 year ago (1 children)

    Shouldn’t be the default though.

    [–] phlegmy@sh.itjust.works 1 points 1 year ago (1 children)

    Ha, you want choice in how your OS functions?
    Here, have another bing toolbar for your settings app.

    [–] dai@lemmy.world 1 points 1 year ago

    Man I hope next time I press windows and type an application by name, or by executable.exe I get a spinning icon then a stack of unrelated web results that are probably malware.

    I don't want my IDE with hours of work to just shut down forcibly.

    [–] cupcakezealot@lemmy.blahaj.zone 1 points 1 year ago (1 children)
    [–] lengau@midwest.social 0 points 1 year ago (1 children)

    Great way to damage a power cable.

    [–] Psythik@lemm.ee 1 points 1 year ago

    Old wives' tale. I've only ever yanked power cords out of the wall and I've yet to have one go bad on me.

    [–] spicehoarder@lemm.ee 1 points 1 year ago

    Closing correctly means the program stops NOW

    [–] squinky@lemm.ee 1 points 1 year ago (1 children)

    If your code can’t handle a sig9 then your code is weak

    [–] Hupf@feddit.org 1 points 1 year ago

    sig 9 or sig 9mm - that's the question here

    [–] sockpuppetsociety@lemm.ee 0 points 1 year ago (1 children)

    kill commands make one feel like a Caesar

    [–] gorlak@lemmy.world 0 points 1 year 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.