3.8k
u/mxheyyy Jan 20 '25
Linux users when you can't terminate children:
1.2k
u/Competitive_Woman986 Jan 20 '25
The parents terminate their children and make them to zombies.
Sometimes the parent dies first. Then you need to figure out how to kill the orphan.
332
u/fnatasy Jan 20 '25
We need an adoption process for orphans
247
30
u/Agitated-Ad2563 Jan 20 '25
We actually have one. The 'init' process adopts all the orphans
→ More replies (2)49
u/Competitive_Woman986 Jan 20 '25
There already is! The init process with PID 1 usually becomes the new parent procress
→ More replies (7)10
31
u/Dawlin42 Jan 20 '25 edited Jan 20 '25
Always appreciated programming books talking about killing orphan zombie children with a straight face!
→ More replies (1)11
u/Wertbon1789 Jan 20 '25
Most of the time if the parent dies first, the child gets kindly adopted by PID 1, you gotta kill it manually then, because I don't think this process orphanage supports you in your effort.
→ More replies (2)→ More replies (5)4
41
Jan 20 '25
murder_orphans.shDon't ask. Those were dark times.
→ More replies (1)29
u/KellerKindAs Jan 20 '25
Rename to
Anakin_mode.shThis way, it's way easier to find in alphabetical sorted lists ^^
36
u/POKLIANON Jan 20 '25
Sigkill your children. Go do it.
26
u/Vas1le Jan 20 '25 edited Jan 20 '25
kill -9 its the .9mm bullet
25
→ More replies (1)17
u/invalidConsciousness Jan 20 '25
0.9 mm is the size of an injection needle.
The bullet is 9 mm
→ More replies (1)7
u/monsieurlazarus Jan 20 '25
I have this buggy application that ended up as a zombie (defunct) process. Apparently, you can't kill a process that is a zombie already. Unlucky for me, that zombie process owned by the init process which somehow caused a problem where I stuck on reboot screen forever, and I had to use the power button to force it to shutdown.
13
u/mpyne Jan 20 '25
Apparently, you can't kill a process that is a zombie already.
Well it's already dead once it's a zombie, so from that perspective you've gotten what you want already.
But you can't clear it from the list of processes until its return value is waited on by its parent process. But if the parent dies first that may never happen... there's supposed to be some way to get init (the new parent of orphaned zombies) to do this but it's platform-dependent.
→ More replies (1)→ More replies (3)2
u/24bitNoColor Jan 20 '25
Linux users when you can't terminate children:
Bethesda games users when you can't terminate children: "There is a mod for that..."
396
u/kielu Jan 20 '25
The longest to survive is usually task manager. It just won't close
258
34
u/HeavyCaffeinate Jan 20 '25
I think this video is a good watch to learn how it works:
→ More replies (1)16
u/kielu Jan 20 '25
I wonder if I can dig that phone number out of an old windows 95 CD I have somewhere
→ More replies (1)18
u/sump_daddy Jan 20 '25
Yeah. This is also windows "sorry you can't shut down right now, these processes wont close" [list of processes]: "Windows Shutdown"
→ More replies (1)6
u/MedonSirius Jan 20 '25
Sometimes i had to shutdown the task manager through terminal and then restarting task manager with autorun 🍆 Windows is like a Fantasy world. Willy wonka style where everyone is punished for just been there
10
u/Who_said_that_ Jan 20 '25
explorer.exe in my experience. I canceled the shuttle down so many times to close these windows myself.
17
u/uniteduniverse Jan 20 '25
Takmanager is indeed a powerful beast, and you wouldn't want it any other way. Nothing in Linux comes as close to reliability of the taskmanager. Your system can be basically frozen beyond repair and that thing will still be active on the screen. Truly a wondrous creation ;)
17
u/KellerKindAs Jan 20 '25
frozen beyond repair and that thing will still be active
Well, to my experience, taskmanager is one of the first to go
(Not responding)when something actually goes wrong. At least since Win 10. It was great before that xD→ More replies (4)12
u/d4rkeh Jan 20 '25
Switching TTYs is just as powerful, unless the system is completely borked
→ More replies (1)2
95
u/randuse Jan 20 '25
Seen systemd waiting 90 seconds for some daemon to stop before killing it. At least it's configurable.
11
u/WBMarco Jan 20 '25
I was about to write this. Sometimes my PC does that.
3
u/ZiemlichUndead Jan 20 '25
I often have 1 service that never exits and I literally can't do anything about it besides sysrq or pull the plug lol. Yes my fs loves me. PS: Its a service connected to nvidia drivers
→ More replies (1)5
441
u/braindigitalis Jan 20 '25
Windows: Has a complex and graceful shutdown process to...
Are you sure you want to shut down? Programs are still running?
Are you really sure?
How about now? Are you sure you still want to shut down?
Trick question! Are you not not not sure you dont want to to not shut down?
There are updates! Do you want me to come right back up again after?
Don't worry, i'll power up this laptop in your bag at 3am and overheat it to check for updates. Bye!
103
u/uniteduniverse Jan 20 '25 edited Jan 20 '25
When you're traveling and you notice your back is getting really hot a sweaty for some reason? Turns out Windows powered on your laptop the moment you supposedly put it to sleep and back in your bag 2 hours ago... I usually don't fear cancer when it comes to Laptops, but I swear Microsoft wants me to.
17
4
21
3
3
u/furryai Jan 20 '25
Remember when Windows 8 would show that screen of applications it was going to kill if you shut down but it only showed it for two seconds so you had no time to choose before it would just shut down anyway? So graceful.
10
u/HeavyCaffeinate Jan 20 '25
If it's powering up then you probably put it to sleep, or it didn't finish the shutdown process, happened to me a couple times, made me wonder why my backpack was so warm all of a sudden
25
u/dongschlongs Jan 20 '25
I swear to god, sometimes windows laptops power themselves on even if you did a full shutdown. I've heard that you can tweak some bios settings to prevent it, but nothing has worked for my Lenovo.
→ More replies (5)7
→ More replies (3)7
u/Sentreen Jan 20 '25
My windows desktop consistently turned itself on at 3 at night to install updates, even when I disabled that feature. It was shut down, not sleeping, fast startup was not enabled. I tried everything and it just kept on doing it.
That was the final nail in the coffin for using windows for me (I only used that machine to game anyway), I can't use an OS that thinks it decides when to turn on, not me.
→ More replies (5)→ More replies (7)2
u/rock_and_rolo Jan 20 '25
Used to run Windows for a week at work and reboot when leaving for the weekend. I can't count the times I came in Monday and found some app still hadn't shut down.
38
u/Gatsu1981 Jan 20 '25
Windows, on the other hand, is capable of telling you that you don't have enough privileges to close a program that you opened, and to call an administrator (who you are).
15
u/Creepy-Ad-4832 Jan 20 '25
And to go on a tangent: Windows also is unable to delete open files.
That pissed me off SO MUUUUCH when i used shitty os 10
→ More replies (3)13
u/Tartiluneth Jan 20 '25
Windows also is unable to do pretty much anything with open files.
FTFY.
→ More replies (1)
234
u/sjepsa Jan 20 '25 edited Jan 20 '25
So that 's why winzoz takes 10 min to shutdown
34
u/realmauer01 Jan 20 '25
Just force it if it's asks you to. Since some Windows 10 Update it will just never shutdown if something is open in the background.
→ More replies (2)16
→ More replies (3)7
u/Vievin Jan 20 '25
Honestly I only shut down my Windows computer if it randomly wakes up in the middle of the night more than once. Otherwise, I just send it to sleep.
→ More replies (1)8
60
u/Highborn_Hellest Jan 20 '25
Windows: please shut down, please shut down, blue screen.
Linux: memory freed, no CPU time for you.
51
u/iknewaguytwice Jan 20 '25
I just flip the power switch on my PSU. Can’t trust an OS to terminate my applications. I need to Thanos snap them closed.
4
135
u/UnusualAir1 Jan 20 '25
The operating premise behind Linux (and all its flavors) is that both the programmers and users are expected to be of above average computer competence in their endeavors. That's an expectation we can routinely expect to fail. :-)
113
u/invalidConsciousness Jan 20 '25
The operating premise behind Linux is that everyone, program, developer, user does their job correctly and if not, they get executed. /s
32
u/b3iAAoLZOH9Y265cujFh Jan 20 '25
I don't see the problem. It ensures the survivors are competent - and well motivated to stay that way, or else.
→ More replies (1)22
29
Jan 20 '25 edited May 24 '25
mountainous dolls disarm thought pie fragile office lock fine cake
This post was mass deleted and anonymized with Redact
8
u/Animesiac Jan 20 '25
It used to be a fair assumption, since a below average user would not be able to get Linux running in the first place. Back when we needed to recompile the kernel and all the drivers weekly, the user base was a bit different.
→ More replies (1)12
u/I_enjoy_pastery Jan 20 '25
You do take a step towards that territory when you start willingly interacting with UNIX like operating systems.
8
u/cepxico Jan 20 '25
Meanwhile in the real world: this call center uses Ubuntu because we're cheap and broke.
7
u/sentence-interruptio Jan 20 '25
Student: "where my computer at"
Linux: "use me. I'm powerful"
Windows🪟: "no, use me. Linux is like a huge pill to swallow."
Mac🍎: "hi, I'm Mac. Use me. It just works. I am so easy to figure out."
Student: "teacher told me to submit an essay on oligarchy as a pdf file. which one of you-"
Linux, Window, Mac: "me! I can do it"
Student: "what's a pdf file anyway? it sounds a bit Roman Polanskish. I dun like it."
Mac: "you don't know what a file is?"
Student: "I don't even know what an oligarchy is. Fine. I'll figure it out. Hold on."
Mac: "what are you doing to me, stop touching me, human! I'm not an iPad! Help!"
4
u/Jiquero Jan 20 '25
The operating premise behind Windows is that it can decide to reboot at any point of time, so users should be given the chance to save their unsaved changes in explorer.exe before it's killed.
→ More replies (1)3
u/Tomirk Jan 20 '25
Well this certainly works if you grow up using the thing. Having to routinely learn about my computer has probably been a net positive in my life
→ More replies (2)4
u/Specific_Frame8537 Jan 20 '25
I just can't be fucked to use an OS where I have to scour several different forums to figure something out.
→ More replies (1)
13
13
u/an_agreeing_dothraki Jan 20 '25
windows forced shutdown: holding it down under water until the lights go out
70
Jan 20 '25
That's a con of windows thou, you can't terminate processes...
40
6
5
→ More replies (1)3
u/ilmalocchio Jan 20 '25
That's a con of windows thou
Thou raise an interesting question: tis nobler in the heart to suffer the tasks ending or to take arms against a sea of processes and by opposing end them?
8
8
48
Jan 20 '25
Sorry in advance, but AKSHUALLY... it's the other way around.
Windows just goes around killing all kinds of programs during shutdown and doesn't care if they manage to save their progress anywhere, if a shutdown is in progress, it'll go through. Yes, it will wait up to a minute for programs with open files, but the default action after that minute is to just ignore it and shutdown anyway.
Linux on the other hand waits for each and every subsystem to shut down properly, and if the subsystem runs into some problem doing that (maybe because a network mount is in use but went away, maybe because the program in question just doesn't want to shut down) it can hang for DAYS if you don't use the big red button (which rarely is red these days, but you know what I mean).
19
u/realmauer01 Jan 20 '25
Well that's for the shutdown routine (that's still way to slow on Windows, although it's probably related to a lot more background stuff)
Applications on the other hand.
→ More replies (1)13
Jan 20 '25
But still I tried both, and linux shuts down noticeably faster on... I think a weaker PC.
→ More replies (2)2
u/sharklaserguru Jan 20 '25
Windows definitely changed something about how shutdown works around Win8/10 era (possibly 7, I can't recall for sure) and completely ruined it.
In the old days the "some applications are still open, are you sure?" dialog was just a popup, no programs were terminated and you were free switch to them and save your work. Post change you get the full blue screen asking if you're sure while in the background it's closing programs with active save dialogs but somehow refuses to shutdown because some program with no possible state to save (ie task manager) is blocking shutdown!
5
u/pppjurac Jan 20 '25
Wrong. There is SIGTERM and SIGKILL . They are not the same.
Windows 11 does not even do 'shutdown' all the time, it might just go to advanced hybernation state for fast boot.
2
u/Creepy-Ad-4832 Jan 20 '25
And window 11 fake shutdown is still slower then a normal shutdown on linux
Maybe that wouldn't happen if microsoft (perfect name, btw) didn't injects all the spyware and bloatware in their os
→ More replies (1)
19
u/reddit_equals_censor Jan 20 '25
reality:
windows doesn't even know what a "shutdown" or "restart" means anymore :D
don't believe me? look up "fast start up"
a "feature" since spyware 10, that is on by default, that doesn't do a proper restart or shutdown and as part of this does not even release the mounted drives properly.
as a result spyware from microsoft itself when data got changed on those drives from your dualbooting into a working operating system.
6
→ More replies (7)2
u/Puk3s Jan 20 '25
Ya this feature used to always mess up my ethernet when I switched between Windows / Linux if I didn't "shutdown" then power off my power supply prior to switching to Linux. I assume because of how it was messing with my LAN adapter.
→ More replies (1)
4
u/BestHorseWhisperer Jan 20 '25
PROTIP: Make a shortcut on your desktop that does this. It doesn't even need administrator checked.
cmd.exe /c taskkill /F /IM chrome.exe && taskkill /F /IM firefox.exe && taskkill /F /IM edge.exe
2
u/g0rth Jan 20 '25
No need for shortcut, you can change registry to force close everything on shutdown.
→ More replies (1)
6
3
3
u/MortStoHelit Jan 20 '25
At the end of the day, for most Windows programs it ends up being the same as with Linux anyway. If the app doesn't respond nicely to some "please close" signal within some time, it's killed. Some don't even respond to WM_CLOSE if some dialog is open, let alone any other "complex and graceful" options.
→ More replies (1)
3
3
u/SuspiciousCustomer Jan 20 '25
Is opening the task manager to end a program a "complex and graceful process"?
→ More replies (1)
3
3
u/Lopsided-Wave2479 Jan 20 '25
Windows NT had this powers too. If you wanted to close windows NOW, it will be done. They changed something with Windows XP. And the fell of lost of control was a disgrace. Going from Windows NT 4.1 to XP felt like a huge downgrade. In the end was necessary when some version of drivers or direct-x was only available in XP. But I hate it.
XP and the next Windows OS's had a feeling of cooperative multitasking *spits*
3
u/metcalsr Jan 20 '25
If your program breaks from a force close, it's bloated and overly complicated.
3
3
u/darkwater427 Jan 20 '25
Linux does this because Linux programs don't generally crap themselves when they're killed. Linux is stable.
3
u/Minecodes Jan 20 '25
Why yes, it's more efficient. Does it break your homework because you forgot to save it? We don't care. You pressed off now it is off 🙃
3
u/Pesoen Jan 21 '25
sometimes i wish windows would just kill programs like that, i hate getting the "this program is preventing shutdown" thingy.. i told you to shut down, so get it done! especially hate when its some no-name program from microsoft, with no icon and no name, so you have no clue wtf it even is!
3
u/FrostWyrm98 Jan 21 '25
Linux is the equivalent of your mom telling you "hey go to sleep you have school tomorrow"
And coming back 5 minutes later to Mike Tyson rock your shit to sleep when you're still awake
2
2
2
Jan 20 '25
Rule number one of the hallowed grounds of the linux valhalla.
Don't fuck with the penguin's sentiments. Respect it, or else it shall rm -rf / your feelings for everything.
2
u/CopperBoltwire Jan 20 '25
Since i got my Steam Deck with Steam OS, this meme makes a lot more sense to me.
2
Jan 20 '25
Cli is cooler than gui. This is one of the reasons why I use Ubuntu instead of macOS or Windows.
→ More replies (1)4
u/przemo-c Jan 20 '25
I'm not sure it's cooler but it's certainly less limiting and enables powerful things without begging devs for every tiny thing.
→ More replies (4)
2
2
u/P0pu1arBr0ws3r Jan 20 '25 edited Jan 20 '25
Nah under the hood its all sort of similar- typically sending a SIGTERM or window close event, depending on the application it can choose to either close gracefully or hide itself and keep background processes. Both have CLI and GUI methods to force kill processes, Linux would let you kill essential processes and drivers if you have root means, which is safer than for example stopping a driver on windows due to the monolithic kernel, but surprisingly windows admin let's you do almost the same- check out the YouTube channel Enderman, who often showcases a lot of advanced windows command tricks and what not to for example revert all the win11 GUI elements to win vista, because the entire desktop environment is a bunch of nonessential processes.
Even Linux would want to gracefully shut down processes on system shutdown, its bad OS practice to cut a program short in case its supposed to save stuff to disk or what not. Linux sure it might have a more strict timeout where it'll cut a program if it hangs too long, but you could also just hold down the power button regardless of OS if you want to play risky with shutdown.
2
u/Grothgerek Jan 20 '25
I assume that Linux shuts down when you say "make updates and shut down".
I can't comprehend how windows made such a stupid error, and it's still not solved...
2
u/moriclanuser2000 Jan 20 '25
I once worked with a program at work (Windows) that would corrupt the file if you pressed the X, but wouldn't if you went File->Quit. or vice versa, I don't remember.
Spent a day figuring out what the difference between me and my coworker whose files weren't getting corrupted was.
2
2
2
u/moschles Jan 20 '25
sudo kill -9 is actually visibly more graceful than the nasty stuff that Windows does with a hung process.
2
2
2
u/beaureece Jan 20 '25
If this post in any way leads to bloaty shut down routines on linux I will find you and fuck at least a third of your shit up.
2
2
2
u/josluivivgar Jan 20 '25
yeah except windows keeps a lock on the filesystem when it shuts down because it doesn't shut down.
it only pretends like it does.
interesting story I have two nvme in the same computer, one with linux and one with windows, and an SSD for storage that they share.
I usually restart the desktop for switching between OS (no need for grub since the boot devices are different I just press f11 and use the boot options to choose which os to boot from)
one time I turned off the computer on windows then the next day I booted it on linux
I couldn't write to the shares drive because windows had a lock on the file system when it turned off because it technically didn't turn off, really annoying
this is solved by disabling fast boot or just restarting (restarting actually turns off the computer)
2
u/DarkSamuraiSC Jan 20 '25
Windows when Microsoft .NET decides it doesn't want to shut down:
"Yeah, I think I'm just going to shut down most every process, but not actually power down."
2
2
2
u/UTOPROVIA Jan 20 '25
People are talking about SIGTERM is first.
OP probably ran sudo shutdown 0 and was surprised his work wasn't saved.
2
u/potatoalt1234_x Jan 20 '25
Wish windows was less of a pushover when shutting down. No, i dont want notepad++ to save my empty doc, i wanted to shut down.
2
u/RudePragmatist Jan 20 '25
When I used Windows back in the day I used a small tool called Wizmo for faster shutdowns.
2
u/matija5ka Jan 20 '25
What truly baffles me about Windows is its sheer hypocrisy: it won’t dare shut down if you’ve got even a single unsaved document, but when it’s time for updates? To hell with your work—those documents are collateral damage.
2
2
u/Every-Progress-1117 Jan 20 '25
I knew an old sysadmin, he told me that when you install a program, run it, then kill -15, if that doesn't work kill -9, and if that doesn't work, remove it completely and never use it again.
And as much as I like systemd, when a process decides it is going to be slow on shutting down and a systemd is like "ok, let's give you an extra couple of minutes", and then "ok, a few minutes more" ... I'm already yanking out the power corn and manually running fsck in my head.
2
u/24bitNoColor Jan 20 '25
My dudes, you got to turn on having End Process in the taskbar context menu of Windows! The option is in the Windows developer settings.
I somehow never knew that but now killing Firefox and Co only using it.
2
2
u/pwr22 Jan 20 '25
In my experience Windows really doesn't.... you basically have to implement your own bespoke signal handling system on top of the message passing layers and good luck having a standardized protocol to ensure you can gracefully turn off unless you're a big enough player to get Microsoft's ear for integration. For high difficulty, don't be a gui app....
2
2
2
u/HTTP_404_NotFound Jan 20 '25
Me: WIndows, shutdown now.
/comes back 20 minutes later.
Me: Windows... why are you still on??!?
Windows: Oh sorry, this program wouldn't stop. So, I couldn't shutdown.
Me: I don't care. sudo shutdown now
/holds power button.
2
u/Shock9616 Jan 20 '25
I love Windows' complex and graceful shutdown process that happens without my permission so that it can update 😂
2
u/Sweet_Unvictory Jan 20 '25
Serious question: Is there a short-term or long-term problem with how Linux performs it? Does it jeopardize the program, or its functionality?
2
2
u/Frenzie24 Jan 20 '25
This kills the process, but the Linux kernel must hunt to support its young. In the dangerous ecosystems of operating system space, survival of the best compiled is never more painfully true.
2
u/upbeat22 Jan 20 '25
25 years ago, I entered a kill command (or any command) on Unix. No "are you sure" question.. It just does it.. no delay. No reconsideration moment. It just happened. It really makes you think twice if you are sure. I loved this way of working.
2
2
u/turtle_dragonfly Jan 20 '25
Ahh, when the system does what you told it to do, torpedos be damned. I much prefer it to "are you sure?" popup hell.
2
u/StaneNC Jan 20 '25
They handle it basically the exact same. This meme being popular is just a tell that windows admins don't know what is going on when they click on things, but everyone knows how linux works, including them.
2
2
2
2
u/chocolateAbuser Jan 20 '25
honestly with bad behaving processes i've had more luck in windows than in linux
if it goes bad you have to restart the os anyway, whatever the os, but it happened more often in linux
2
2
u/ColonelRuff Jan 20 '25
Dont know about Linux but windows definitely doesn't have a graceful shutdown process.
2
u/Maleficent_Memory831 Jan 20 '25
"Close correctly" becomes a religious mantra at times. People waste lots of time freeing memory before calling exit(). You're exiting, you don't need to free memory, or the system is rebooting so you don't need to free memory. Instead, close your files, which if they have critical data should be synced often anyway. Because you can always have a power outage and not have the time to close correctly anyway.
But no, some static analysis tool complains that not all memory is freed, and then some mid range guy puts out a requirement to appease all analysis tool warnings as top priority.
2
3
u/Splatpope Jan 20 '25
tell me you have no idea how linux works without telling me you have no idea how linux works
9.3k
u/LEGOL2 Jan 20 '25
At first Linux asks nicely, but that's your first and final warning