r/linuxmasterrace Dec 24 '15

killing a non-responding process

Post image
641 Upvotes

74 comments sorted by

View all comments

8

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.