Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on social.fossware.space
linux·Linuxbyantihero

`pkill -9 -f firefox` won't work, what can be a possible explanation?

My friend was running firefox on linux mint, and it froze and he used xkill to kill firefox. But still it shows up in htop ps -aux. He tried to kill it multiple times but it didn't work. See the pictures for explanation. We had to kill power to shutdown, even systemd can't stop that process.

View original on social.fossware.space
21

5 replies

Yes, I killed the parent process. Also after killing the process with firefox PID, the file equivalent to that process /proc/PID was still there. I think it could be - "likely I/O or driver related" or "stuck in a syscall waiting on some kind of I/O operation that isn’t timing out/is bugged out/can never complete".

6
kbin.social

kill takes a process ID (i.e. a number) not a process name. Either find the right PID with ps first or use killall, although be aware that killall does exactly what it says: kills all processes matching the string it is given. If you only want to kill one of several Firefox processes that isn't what you want.

4

Sorry my mistake, it was pkill, but we also tried kill with process id, and we also tried killall. Every method that I knew i tried.

7

Did you literally type kill -9 firefox? Because the kill command normally takes PIDs not process names. killall takes process names, but process names are not always straightforward. Under normal circumstances firefox would exit when X/Wayland goes away though.

Using the sysrq key in the "reverse BUSIER" sequence when your system won't shutdown/reboot is always better than shutting the power on a running system.

2

Sorry, it was a mistake, I fixed the post. Also I tried many other ways to kill that process. Thanks for the BUSIER tip.

1

You reached the end

`pkill -9 -f firefox` won't work, what can be a possible explanation? | Spyke