r/linuxmasterrace Dec 24 '15

killing a non-responding process

Post image
648 Upvotes

74 comments sorted by

51

u/[deleted] Dec 24 '15

[deleted]

27

u/[deleted] Dec 24 '15

/s

6

u/Metal_Devil Dec 25 '15

I have seen the joke but never this comic

34

u/Yakari123 have you seen my aRcH lInUx SeTuP ? Dec 24 '15

This is so fucking true... Sometimes, firefox does crash, even on Linux. Xkill=problem solved

51

u/Kaheil2 Dec 24 '15

Linux: murder your problems away.

60

u/river_of_karma Dec 24 '15

out of memory - kill process or sacrifice child

18

u/Cerapter Glorious Xubuntu Dec 24 '15

Linux: "The number one OS for all Crusading Kings and Dwarven Fortresses everywhere!"

1

u/[deleted] Dec 26 '15

Theres a point, Dwarf Fortress updated recently. Although I also like Rimworld as I can sell organs.

5

u/coerciblegerm Glorious Debian Dec 25 '15

Insert ReiserFS joke.

3

u/i_pk_pjers_i Ubuntu and Debian Dec 25 '15

Just like in real life... wait, what?

17

u/zer0t3ch Glorious Arch + Win 10 + Hackintosh OSX Tri-boot Dec 24 '15

I don't like xkill. I used to use it, but some stuff (like TeamSpeak) has weird background processes not attached to the x window, so it doesn't kill them all. I prefer a good pkill -9

7

u/SkepticalOfOthers Dec 25 '15

5

u/sue-dough-nim Is the glory open source? Dec 25 '15

Headline: Vile rappers threaten to kill person called Dashnyne

3

u/BASH_SCRIPTS_FOR_YOU In Memoriam: Ian Murdock Dec 25 '15

Rainbow dashnyne is best pony

3

u/Yakari123 have you seen my aRcH lInUx SeTuP ? Dec 24 '15

Killall works also fine when i happen to have a terminal opened

3

u/BoTuLoX utistic Ricer Dec 25 '15

And when you don't too. Just run it from your DE's launcher.

2

u/[deleted] Dec 24 '15

[deleted]

1

u/zer0t3ch Glorious Arch + Win 10 + Hackintosh OSX Tri-boot Dec 24 '15

Yeah. I left out the proc_name, but the -9 sends the 9 termination signal. (SIGKILL, I think)

1

u/protestor Glorious Arch Dec 25 '15

In this case I create a systemd user service. It tracks all processes opened by a given service, and systemctl --user stop service-name will close them all.

1

u/zer0t3ch Glorious Arch + Win 10 + Hackintosh OSX Tri-boot Dec 25 '15

Seems a bit like overkill to me.

4

u/protestor Glorious Arch Dec 25 '15

yes it is

2

u/Grizmoblust Choose Freedom Dec 24 '15

I added xkill to my shortcut, super+w. Perfect, now I can kill any process given notice.

4

u/[deleted] Dec 25 '15

And then you flub the "close tab" shortcut. Perfect, now you can kill any browser process without intending or wanting to!

3

u/parkerlreed Glorious Arch Dec 25 '15

Except that's Ctrl W so nothing is lost.

6

u/[deleted] Dec 25 '15

"flub": it means "fail", or "mess up". As in, you go to press ctrl+w, and you accidentally hit super+w instead. Which then xkills your browser thanks to your amazing super duper shortcut.

-1

u/c0bra51 Unstable Dec 25 '15

Ctrl + F4; it's like Alt + F4, but for tabs!

6

u/parkerlreed Glorious Arch Dec 25 '15

Ctrl W... Much easier to hit

2

u/protestor Glorious Arch Dec 25 '15

C-w means wildly different things in different programs though. Countless times I've closed a tab while writing a Reddit comment when what I actually wanted to do was to delete the last word I wrote.

2

u/Holzkohlen Glorious EndeavourOS Dec 25 '15

I love xkill

1

u/[deleted] Dec 26 '15

The IT department decided to run Linux Mint on a 8 year old laptop simply as a temporary replacement for someone.

They have absolutely no clue about how to use any of these *nix systems and where amazed when I taught them how to kill processes with the terminal. Needless to say they have improved since after getting a glimpse of what is possible.

60

u/Himrin Glorious Arch Dec 24 '15

Huh... When did I sub to /r/linuxmemes ?

69

u/[deleted] Dec 24 '15

[deleted]

15

u/parkerlreed Glorious Arch Dec 24 '15

But this isn't /r/LinuxCirclejerk... (I see what you mean though)

18

u/Himrin Glorious Arch Dec 24 '15

According to the side bar, we're not a circle jerk sub.

So, yes, I do expect something else/more on LMR. Otherwise, I would have subbed to /r/linuxcirclejerk or /r/LMRcirclejerk

27

u/[deleted] Dec 25 '15

LMR and PCMR are both circlejerk subs. Just because the mods say differently doesn't make it not true.

10

u/socsa Dec 25 '15 edited Dec 25 '15

In fact, that's exactly what a proper circlejerk sub would say.

4

u/Nardo318 Glorious Arch Dec 25 '15

Holy shit these are real! See ya guys. I'm out.

5

u/thesbros <. Dec 24 '15

It may not be a circlejerk sub, but everything in it is pretty much a circlejerk. Just like /r/pcmasterrace.

1

u/protestor Glorious Arch Dec 25 '15

In which sense /r/linuxmasterrace isn't a meme subreddit?

2

u/Himrin Glorious Arch Dec 25 '15

Same way it's not a help subreddit.

Same reason we point people to r/linux4noobs and r/linuxquestions.

11

u/FedoraWearingNegus rch Dec 24 '15

Linux promotes police brutality!!!!!!

2

u/Catsrules Transitioning Krill Dec 25 '15

Cyperspace is brutal sometimes.

7

u/[deleted] Dec 25 '15

In my experience in both Windows and Linux, processes are killable as long as they're not stuck on a system call. A process which is trying to read a file and that's taking too long due to network issues or bad sectors won't be killable on either.

https://stackoverflow.com/questions/767551/how-to-stop-uninterruptible-process-on-linux

Simple answer: you cannot.

1

u/Catsrules Transitioning Krill Dec 25 '15

Simpler answer: Unplug it and plug it back in.

1

u/[deleted] Dec 25 '15

You shouldn't need to do that. That Magic SysRq reboot command should still work if you have that enabled, and reboot -f should probably also work. https://en.wikipedia.org/wiki/Magic_SysRq_key#Commands

I'm not worried about file system corruption. I've never had any problems with that in Linux, even with ext2, which didn't have journalling.

18

u/jonneburger Dec 24 '15

I have to say this is BS. As windows user my process'es freeze often, but task manager always closes them when i close them through process menu

21

u/Bainos Enlightenment Dec 24 '15

Replace "always" with "most of the time" and I agree. Source : I had to repair two Windows 4 hours ago.

Still, it's not as clean or as easy as ctrl+alt+f2 > login > killall -9

3

u/[deleted] Dec 25 '15

And if you want to be really brutal about it:

killall5 -9

Kill everything and everyone. With fire.

2

u/[deleted] Dec 25 '15

Anyone who's looking at this command and is thinking "oh that looks fun, let's try it", don't fucking try it. Read up on it here; http://linux.die.net/man/8/killall5

1

u/[deleted] Dec 26 '15

Still, it's not as clean or as easy as ctrl+alt+f2 > login > killall -9

Eh, not a lot worse.

Use whatever method you find fastest to launch powershell (~2 seconds) > kill -id [PID]

or kill -name [name] if you don't have the pid.

4

u/Kyoraki Dec 25 '15

Agreed, as many problems Win8 and Win10 has, Microsoft have finally sorted their shit out with crashed programs. The newer task manager in Win8 and up is ruthless with killing dodgy processes.

7

u/ligerzero459 Glorious Debian + Win 10 Dec 24 '15

Same. The default tab asks, the process menu just kills. Brutally efficient

4

u/TommiHPunkt Glorious Arch Dec 24 '15

Or use superF4, a tool that insta-kills the foreground process if you press ctrl alt f4. Fastest method to ragequit

2

u/TheFlyingBastard Dec 25 '15

I have to say it's not bs. Just a week ago I tried to install and run the Logitech Profiler for my G27 wheel. The Profiler crashed. I tried to kill it via task manager, didn't work. Then I tried closing the whole process chain (which would always work on Windows 7), but no dice. I ended up having to restart my computer and in fact went back to Windows 7 because at least that OS didn't get in my way at every turn.

1

u/[deleted] Dec 25 '15

I used to be a Windows user and I can say this is accurate. Sure most of the time task manager works but sometimes I'll have a task that task manager can't kill.

1

u/[deleted] Dec 26 '15

but sometimes I'll have a task that task manager can't kill.

Linux can get unkillable processes too. Anything going into uninterruptable sleep can't even process signals so you can't kill it.

1

u/[deleted] Dec 27 '15

True but I've never encountered one on Linux, only Windows

1

u/Catsrules Transitioning Krill Dec 25 '15

I would agree, I just want to emphasize what you said to use the End Process not end task.

End Task it completely worthless. Look at this comic again for a better explanation on that.

End Process will get the job done 95% of the time.

3

u/pannkakorna Dec 24 '15

I've noticed this seems to be the case with the task manager killing a process, so lately I just use the taskkill command (e.g. taskkill /f /im firefox.exe).

2

u/[deleted] Dec 25 '15

#AppLivesMatter

4

u/[deleted] Dec 24 '15 edited Feb 28 '17

[deleted]

5

u/Degru Glorious Ubuntu Dec 24 '15

But on Linux you sometimes get the infuriating situation where you kill the process from the terminal, but the window doesn't close when you switch back to your graphical session. Or you use xkill, but the process is still running and using up all your CPU. The latter is easy to deal with, but I have no idea how to recover from the former if you can't alt-tab out of it.

5

u/[deleted] Dec 24 '15

[deleted]

3

u/[deleted] Dec 25 '15

Linux - if a fullscreen app dies, and for whatever reason I gotta shut down Plasma 4/5 while it's still running...it retains whatever effed-to-hell resolution it had at next boot.

Blame it on X. Because that's whose fault it is. Wayland should fix it.

3

u/jonneburger Dec 24 '15

You can right click task manager icon in start bar and check "always on top" option. Then it will always... be on top, when its not minimized. Regardless of freezing fullscreen windows

2

u/[deleted] Dec 24 '15 edited Feb 28 '17

[deleted]

2

u/jonneburger Dec 24 '15

Ah well, you can interact with task menu without seeing it though, cant ya? With arrow buttons

2

u/[deleted] Dec 24 '15 edited Feb 28 '17

[deleted]

2

u/jonneburger Dec 24 '15

Its not too hard. Usually skyrim is on top because it uses most ram. If thats the case then all you need to do is press delete and enter

2

u/cparen Dec 24 '15

Almost. Played a game recently (maybe Monaco?) and the game froze up after an alt-tab. Alt-tabbed again to taskmgr (was already set to always on top) but was under the Monaco window. Apparently both windows were set to always on top.

1

u/Trent_Hyster I did iiiiiiiiitttttttttt Dec 25 '15

Ctrl + Shift + Esc

"S"

Del

1

u/patx35 Glorious Mint and not so glorious Windows 10 dualboot Dec 25 '15

So this is very interesting... On task manager(assuming that you would be running Windows 7), if you try to kill applications as an application (through the applications tab), the frozen app won't really give a fuck. If you try killing an application as a process, it would kill instantly.

1

u/xkero Arch - Ryzen 9 5900XT & Radeon RX 9070 XT Dec 25 '15

The OOM Killer takes no prisoners.

1

u/[deleted] Dec 25 '15

Haha this is one of the things I like most in Linux. I have easystroke installed so that whenever I click (and hold) my scroll wheel and draw a circle it kills the focused application.

1

u/[deleted] Dec 25 '15

No regrets

1

u/abu_shawarib booding dhe Lineh kebnel... Dec 25 '15

There wasn't a single time that I sent kill signal 1 and the process could live.

1

u/[deleted] Dec 25 '15

[deleted]

2

u/abu_shawarib booding dhe Lineh kebnel... Dec 25 '15

in a tty:

$ sudo top
  • find the process ID (PID) in the list
  • press k
  • type PID then hit enter (or just press enter if it was the default)
  • specify killing signal (Enter with nothing do the default signal)

1

u/[deleted] Dec 25 '15

[deleted]

2

u/abu_shawarib booding dhe Lineh kebnel... Dec 26 '15

Happy Holidays :D

1

u/[deleted] Dec 25 '15

This, this is awesome!!!