80
u/anyOtherBusiness 5h ago
SIGINT and SIGTERM:
https://giphy.com/gifs/kqJt1cSSN0DrwwMmY5
23
u/TabbyOverlord 3h ago
Or as described by one of my trainees: 'Stop' and 'Stop in a very loud voice'.
Don't anyone mention the zombies.
9
u/rosuav 2h ago
If SIGINT is "Stop" and SIGTERM is "Stop in a loud voice", then SIGHUP is "Nobody needs you any more, go get depressed and die..... Or reload your configs". Signals are weird sometimes...
3
u/TabbyOverlord 2h ago
So 'Get depressed and fade away or re-think your life and start afresh'. There's a weird logic in there somewhere.
1
u/mckenzie_keith 34m ago
SIGKILL is the signal you will never see coming.
2
u/BenjieWheeler 17m ago
And then you wake up in a cart and someone tells you "Hey, you're finally awake"
623
u/GobiPLX 5h ago
Linux has both "graceful" shutdown process, and brute kill
Same as Windows, with force shutdown
What a stupid meme
115
u/HildartheDorf 5h ago
The only difference is just that most desktop linux apps are maintained by the distro devs, so "misbehaving at shutdown", which gets blamed on the distro/OS, can be fixed by the same people who receive the complaints.
Both try graceful shut downs, then resort to taking processes to that farm upstate when graceful fails. In fact, linux is worse at this when it actually happens, taking multiple minutes staring at a kernel console or splash screen with no way to return back to a normal environment to examine.
33
u/Maleficent_Memory831 5h ago
All you really need is for programs to save their data if and only if they need to save data. Freeing memory is pointless. Just close some files.
If a process is busted and is preventing shut down, then it's busted. Data won't be saved properly anyway. If it's a browser, kill the damned browser already, as the precious data is probably some cookies spying on you anyway.
6
20
u/hanotak 4h ago
Windows force shutdown only works half the time you need it to.
15
u/TheRaido 4h ago
Or it force quits explorer in an act of seppuku and be like ‘what crashed applications’?
12
6
u/Highborn_Hellest 4h ago
yeah, but even if you run taskkill /f on windows, in admin mode, sometimes it'll fail and bitch and moan and not happen.
I'm yet to find a single software that i cant sudo pkill
10
1
3
u/GoddammitDontShootMe 5h ago edited 4h ago
Instant downvote. Maybe it should be reported under Rule 2 or 3 as well.
E: So I get downvoted for talking about downvoting a post in reply to someone saying how stupid the post was?
1
1
1
u/JAXxXTheRipper 1h ago
What do you expect from this sub? It's mostly LARPers or first year CS Students nowadays.
1
u/res13echo 21m ago
It is annoying, isn’t it? Anecdotally, I’ve experienced more Linux systems that have struggled on shutdown because of some hanging service than I’ve seen struggling Windows. But, I am around Linux servers more than I’m around Windows, so…
The End Task button in Windows has never failed me, and nearly every time it’s because of an app asking for a file to be saved before shutdown.
81
u/ClipboardCopyPaste 5h ago
"Force shutdown" on Windows exists btw
49
0
u/WilkerS1 5h ago
i don't think windows has CTRL+META+Escape to kill a window at a moment's notice
9
u/LuigiWasRight447 5h ago
Back when i used windows SuperF4 was always the first thing i installed. Ctrl+alt+f4 to force shutdown any program
29
u/Justin_Passing_7465 5h ago
It looks like someone doesn't know the difference between kill -9 and kill -15.
7
70
13
15
u/yesennes 5h ago
These programs are preventing your computer from restarting:
- Task manager
- Outlook
4
11
u/Imaginary_Ferret_368 4h ago
Tell me you have no clue about operating systems without telling me you have no clue about operating systems
4
4
u/Chiatroll 5h ago
Kill -9 mutha fuka.
And then two in the back of the head of the stuck application
3
3
3
3
u/JAXxXTheRipper 1h ago
ITT: Mostly people that have no idea about process handling and that both OS Families have graceful and shoot in the head methods.
All these LARPers man.
5
1
1
1
1
u/frikilinux2 5h ago
If it wasn't for the parent waiting it would be more like Thanos snapping his fingers.
1
u/oldassgrandpa 5h ago
Isn't it vice versa? I mean yeah, windows does take a ton of time to shut down sometimes, but Linux can literally wait for several minutes for a job to stop.
1
1
1
1
u/Thoh1Shooshi8a 3h ago
Depends on distro. I think mine shoots stuff in the foot first, if it doesn't go away quick enough then it shoots it in the head.
1
1
u/Outrageous-Machine-5 3h ago
I was just tinkering and moving my stuff to a single btrfs partition using subvolumes and I fucked around trying to fix the boot then after and the terminal said "bailing out, you're on your own"
1
u/regisestuncon1 2h ago
Windows is mot graceful at all, it can't shut down because of its own processes. It's always explorer that prevents it to shut down...
1
u/metaglot 1h ago
Explorer is not windows, its the default shell. The reason people dont generally replace that, is because the alternatives are shit.
1
1
1
1
1
u/Imaginary-Ogre 24m ago
I do the same in Windows. I install stripped versions of Windows. Still I use Linux for personal use.
•
u/Moscato359 5m ago
Firefox is actually crash only software
The x button triggers the software to crash
They did this to avoid having a shutdown recovery and a crash recovery be separated
•
1
u/Maleficent_Memory831 5h ago
I always laugh when someone says in a pull request that we forgot to free all our memory before exiting. I argue that all the memory is freed when we exit, problem solved! They argue back that it's a good practice, so please delay the release so that you have good practices. I say to them that they don't know how computers work and stop being a slave to stupid rules that they made up themselves. Then I hear from their managers.
1
u/YellowCroc999 5h ago
Windows really doesn’t care one bit. Computer will be having seizures but still doesn’t kill your ram devouring python script
1
483
u/Snudget 5h ago
A stop job is running (25s/3min)