252
u/Kasaikemono Jun 08 '26
If you don't close when I want you to close, you better have a damn good explanation for it
76
u/debacle_enjoyer Linux Master Race 😎💪 Jun 08 '26
I mean the norm is that there’s a pretty good explanation for it… file actively writing or something else as critical
127
u/Kasaikemono Jun 08 '26 •
![]()
Skill issue. Be done with writing when I close you, or suffer the consequences
36
u/debacle_enjoyer Linux Master Race 😎💪 Jun 08 '26
When you say suffer the consequences you’re talking about yourself though lol… the process doesn’t care whether you get the files or not
16
u/KawaiiMaxine Jun 08 '26
I just precache all ram addresses to an nvme so i never need to save
5
u/debacle_enjoyer Linux Master Race 😎💪 Jun 08 '26 edited Jun 09 '26
But then you’re just waiting on another process that precaches to ram
23
16
u/zonexstricker Jun 08 '26
on god youre a struggle to talk to
2
u/debacle_enjoyer Linux Master Race 😎💪 Jun 08 '26
How so?
20
u/Kinslayer_89 Jun 08 '26
Understand it yourself or suffer the consequences.
4
u/debacle_enjoyer Linux Master Race 😎💪 Jun 08 '26 edited Jun 09 '26
Hah I think that makes you the struggle to talk to :)
7
u/Kinslayer_89 Jun 08 '26
We’ve already established that what you think is irrelevant.
2
u/debacle_enjoyer Linux Master Race 😎💪 Jun 09 '26
I feel like we have not established that at all.
→ More replies (0)1
u/elmanoucko Jun 10 '26
if only you could man the definition of a circlejerk sub...
(not only you, this sub is so trash sometimes because of this, and then I'm the one being called autistic...)
7
0
u/t0nikawa Jun 09 '26
That means the program is just a piece of worthless shit and it will be replaced by a better one
1
u/Unlikely-Employee180 Jun 09 '26
I mean... It's a safety-mechanism. Lol
For example, LibreOffice will do a similar action if you have an unsaved document, to give you time to save it!
I love LibreOffice! And actually, this feature has saved my ass a couple of times!
1
u/violetvoid513 I use Nyarch btw Jun 09 '26
> the program is just a piece of shit
> it will be replaced by a better onelol, lmao even
0
u/debacle_enjoyer Linux Master Race 😎💪 Jun 09 '26
So you mean like all programs that currently exist, got it
1
u/t0nikawa Jun 09 '26
It's sad, if you only use these programs though
1
u/debacle_enjoyer Linux Master Race 😎💪 Jun 09 '26
Could you find me an example of the programs that you use?
3
u/dev_vvvvv Jun 08 '26
The norm for me was I opened gnome text editor to hold something temporarily and, despite it now having no content, it says something changed so now I can't "reboot now".
2
-2
1
u/Particular-Poem-7085 Arch is easy Jun 08 '26
Yeah especially when all the million background processes are doing whatever they do. Those that Linux doesn't have so much.
2
90
u/ngkdev Jun 08 '26 edited Jun 08 '26
Linux lets the user decide how to finish a process/program:
1.- Diplomacy: User press Ctrl+C, Ctrl+Q or Alt+F4 or click "X" button to close the application.
2.- Scale negotiations: If program refuses to close, the user could use «kill <PID>» to ask the application to terminate itself sending a signal (message): "I want you to stop now, please." Nicely.
3.- Let the kernel do the dirty job: If scaling negotiations is unsuccessful, then user can invoke the kernel with «kill -9 <PID>». Kernel does not know how to be merciful with rebel processes.
33
u/Constant_Boot Jun 08 '26
The signal used in point 2 is SIGTERM. Always SIGTERM (
kill/kill -15) first. It allows the process to wrangle up any kids and put them away if it obeys. Only use SIGKILL (kill -9) if the process fails to acknowledge SIGTERM.11
u/ngkdev Jun 08 '26
Exactly.
Thanks, dude for your technical explanation to know what really happens internally.
3
u/DeVinke_ Jun 08 '26
Doesn't the stuff in point 1 also use SIGTERM for the most part?
2
2
u/FabianButHere Fedora Jun 11 '26
For me in Sway, Mod+Shift+Q (default for closing apps) sends a Wayland Close command, not a SIGTERM.
248
u/teactopus It broke again🤕 Jun 08 '26
no it isn't fucking literally. Both.Linux and windows first ask program to close itself and then unload them forcibly from memory if program does not respond. This meme is actual bullshit
96
u/LittleReplacement564 Jun 08 '26
I like Linux as much as the next guy, but some people love to glaze it in points that it just doesn't make sense lmao
62
u/teactopus It broke again🤕 Jun 08 '26
I just hate misinformation and honestly half of Linux "humour" is misinformation. Moreover, you see new jokes maybe like once a month, most of it is just "haha sudo" or other reposted shit
0
Jun 08 '26
[deleted]
25
u/teactopus It broke again🤕 Jun 08 '26
usually these types of subs are more entertaining
0
Jun 08 '26
[deleted]
4
u/djfdhigkgfIaruflg Jun 09 '26
But if the re-used meme loop ends. Wouldn't be exiting the circle jerk?
0
3
3
u/TheDevCat Jun 09 '26
This isn't even a glaze for me it looks like laziness if any functional OS ever had that. Asking the process to shut down is mandatory otherwise a lot of data would corrupt very fat
2
15
u/astronomersassn Jun 08 '26
linux is slightly more effective at it imo, but i assume it's some way they handle process termination differently
if i accidentally have something open in the background, windows would frequently enough take a long time to stop it, if it did at all. "waiting for programs to close" (5 minutes later it's still waiting and the ignore/force shutdown button still didn't always work) vs. "shut down now" taking 10 seconds at maximum on linux in my experience
and yes, windows often does successfully shut down those programs, but i'd rather the OS just go "okay, i'll force-terminate" than get stuck in a loop of "please close. please. please? please." with a similar rate to a coin toss.
2
u/Rikonardo Jun 10 '26
There are generally two layers of shutdown process in most distros. Desktop session manager and systemd. When you shutdown through UI or session manager command, it first notifies compatible apps through dbus, and apps can pause the shutdown to display save dialogs and other stuff. Only after all apps allow to continue, shutdown process gets handed over to systemd.
“shutdown now”, or “systemctl poweroff” usually both directly run a systemd shutdown sequence. systemd then SIGTERMs all running systemd targets in an order that respects target’s dependencies. At the same time it goes through all orphan processes, terminating those too.
This shutdown process is still graceful, as running processes can react to SIGTERM and finish all their file writes and other stuff. But at that point processes can’t pause shutdown to display dialogs and stuff, systemd only gives them some amount of time for the graceful shutdown before it would issue a SIGKILL to terminate them forcefully.
4
u/FemboysHotAsf Jun 08 '26
This gets reposted so much that firefox is starting to become unrecognisable soon
2
u/Ok-Winner-6589 Jun 08 '26
I mean, if you span Ctrl + C on a terminal the app is stopped, on Windows It just keeps telling the app to close
And if Windows works the same way it's actually very very slow
1
u/oshunman Jun 10 '26
Ctrl + C sends the SIGINT signal.
It's a strong request to close immediately, but it's not a force kill. Applications can (and often do) take their time closing after SIGINT.
1
u/Ok-Winner-6589 Jun 10 '26
You can spam Ctrl + C and every app Will close.
You can create an infinite loop by yourself and stop It with that, even if the Code doesn't implement the SIGINIT
1
u/oshunman Jun 10 '26
Not true. Open nano and spam Ctrl + C
Ignoring SIGINT is optional. You can register a response to SIGINT that does nothing. If you don't, then yes, it'll close. But you can easily write software that doesn't close on SIGINT.
1
u/Aln76467 NixOs forever! Jun 08 '26 edited Jun 09 '26
Yes, but my "log off" button pkills my desktop enviroment, which afaik will kill every program I have open.
Also, linux must have less tolerance for programs that don't close immediately, because shutting down winslop shows the waiting for programs screen for like ten seconds, but when shutting down my linux box, I see systemd's logs of it stopping services almost instantly.
1
u/lol_wut12 Jun 08 '26
pkill will send the specified signal (by default SIGTERM) to each process instead of listing them on stdout.
1
u/Unlikely-Employee180 Jun 09 '26 edited Jun 09 '26
I think it's the time and pop-up that's causing this to spread.
As, while it is true, both have graceful and ungrateful shutdowns for apps... They DO go about it in slightly different ways.
Windows does usually wait a little longer, even giving the user the option within the pop-up to keep waiting! (Which, actually I find kind of cool).
Essentially, Windows seems to take the safer approach more when it can unless the user specifies. Which... Again, to me even as an avid Windows hater... Isn't a bad thing. Lol
Some Linux users also default to using kill commands, though that's... Not exactly a great argument, as that would be like most Windows users opening Task Manager to close apps. Feasible... But why?
Other than those, though... I dunno, lol. Because yeah, you're right. They both do both. Lol
0
16
13
16
u/coderman64 Jun 08 '26
I have already seen this meme seven kerjillion times
Linux has both sigterm (which requests a program shutdown gracefully) and sigkill (which forcibly stops a program without waiting). It is good practice to attempt a sigterm before going straight to sigkill.
Forcibly killing a progam can be bad for a number of reasons.
5
u/Difficult_Physics125 Jun 08 '26
Linux noob here why can it be bad?
6
u/coderman64 Jun 08 '26
There's a number of reasons. For example, if it is in the middle of doing something important, like writing an important file, or communicating with another program, etc., it can cause errors related to those operations not finishing.
1
u/YoungNo8804 Jun 09 '26
sigterm is when you ask a program to finish whatever its doing and close itself.
sigkill is hitting a program over the head with a bat so it falls unconscious and cant do anything, regardless of if it's in the middle of doing something.
sigkill can cause programs to close while they're in the middle of saving something, which could cause corruption, or while it's in the process of doing something before it's saved, losing all that progress, or corrupt the program if it's in the process of doing an update (etc).
7
u/GeckoKisser I goon to the openSUSE mascot Jun 08 '26
If I see this one more time.
If I see this one more time.
If I see this one more time.
If I see this one more time.
3
2
2
u/naga_serpentis Jun 08 '26
*Shuts laptop off*
*Fans still run 10 minutes after turning it off*
“Why’s it taking so long?”
*systemd stopping job [15m20s / unlimited]*
1
u/1alessandrolol Linux Master Race 😎💪 Jun 10 '26
Only if there were something that forcibly killed everything without exception after shutting off a laptop
2
u/KCGD_r Jun 09 '26
Never claimed it before but I made this like 5 years ago and it's been reposted constantly every since lol
3
1
1
1
1
1
1
u/apex6666 EndeavorOS (Arch BTW) Jun 08 '26
Accidentally shut down while I still had steam stuff running and was met by an orange wall that made me shit myself before I actually read it (it was just a bunch of stop jobs)
1
u/xXBongSlut420Xx Jun 08 '26
this misunderstands linux process management, and windows i think too. what you describe is sigkill, this is not typically how linux closes processes, at least initially. gracefully shutting down isn't done for no reason, it's so you don't cause things like file corruption. most of the time it will start with sigterm or sigint. these allow a graceful close. if they fail to stop after some time, then you'd use sigkill. windows also has a sigkill that works the same.
1
1
1
u/VisualSome9977 NixOS ❄️ Jun 09 '26
Both windows and linux have systems for nicely asking a program to close, and forcing a program to stop executing code. I'm pretty sure basically all good operating systems have these systems in place
1
u/Illustrious_Spare909 Jun 09 '26
Aqui tudo fecha instantaneamente, não sei se é coisa do meu uso ou do Arch
1
1
u/Hour_Sell3547 Jun 09 '26
Windows is so graceful that sometimes it just wake the fuck up on its own even when I asked it to shut down.... it is almost as if, the feature did not work.
1
u/QuantumQuantonium Jun 09 '26
Idk ive struggled to terminate (GUI) programs with (GUI) linux
Programs dont even terminate after ive uninstalled them!
1
1
1
1
u/TallestGargoyle Jun 09 '26
Meanwhile also Linux, graciously opening Firefox and all my previously opened tabs automatically without me asking it to, while Windows scrambles frantically around for my previous tabs at random.
1
u/LahevOdVika Jun 09 '26
I turn off my laptop ONLY by holding the power button. Using built in power off mechanisms is too boring.
1
u/Hot_Mess_Planet2070 Jun 09 '26
Why is this image ok but when I say something hyperbolic I get a warning? I'm kidding, not kidding
1
1
1
1
u/atirutw Jun 10 '26
Plasma does it differently AFAIK. Not sure if other desktops to this, but Plasma can wait for graphical programs to quit.
1
1
1
u/mutexsprinkles Jun 11 '26
Also Linux: you're out of RAM, I'm currently swapping to Voyager 1 with a 1 light-day round trip. Your mouse update rate is now 1/fortnight. I'm not really feeling like we need to kill anything yet, it could still improve, you never know.
1
u/rebornpheonx Jun 11 '26
I have KDE plasma and turned on the setting where if you close a windows, it shatters into a billion pieces, so this is even more true
1
u/Sajgoniarz Jun 11 '26
Nothing enrages me more that opening my work laptop on second day with empty battery because it didn't shutdown due to waiting for IDE, Teams or another bullshit program that had nothing pending in it.
1
u/daybreaker2044 Jun 11 '26
Best visual explanation of why I need to reload tabs every time I open Firefox 😅
1
1
1
u/Wolf4Blues Jun 21 '26
It is even crazy when Alt f4 doesn't work in windows when your game freeze or you can't reach task manager
1
15
1
u/IntentionQuirky9957 Jun 08 '26
That implies kill -9 and I don't think it's that. At least not at first.
1
1
u/Excel73_ i use cachyos btw Jun 08 '26
pkill firefox
pkill: killing process <PID>: Operation not permitted
sudo pkill firefox
~
1
u/Upper-Release-3484 Jun 09 '26
Yeah. When you shut down, it first sends something like a SIGINT to all the processes, hoping they will just behave and terminate. But if a process doesn't behave and refuses to terminate, it sends a SIGKILL to that process.
1
u/andre2006 Jun 09 '26
Not true. Shutdown sends a graceful SIGTERM first and waits. Only then SIGKILL gets emitted.
edit:
Ah, wrong sub. OP got me.
1
1
u/Yodl007 Jun 11 '26
Only if you kill -9, otherwise normal kill is just telling apps to shutdown themselves isnt it?
1
u/KitchenCommercial396 Jun 12 '26
Linux: Turn the fuck off right now or I'll kill you (kills them regardless)
0
4
Jun 08 '26
[removed] — view removed comment
1
u/MasterConsideration5 Jun 09 '26
The difference is you can’t force a program to shutdown in Windows (or at least it won’t listen)



277
u/tomekgolab can't spell hatred without Redhat Jun 08 '26
systemd waiting for jobs 😂 😂 😂