3

I`m unable to terminate process by SIGKILL signal.

$ ps aux | grep -i phps
username 17564   0.0  0.0        0      0   ??  ?E   Sun09AM   0:00.00 (phpstorm)
username 27664   0.0  0.0  2442020    788 s000  S+   11:53AM   0:00.00 grep -i phps
$ sudo kill -9 17564
$ ps aux | grep -i phps
username 17564   0.0  0.0        0      0   ??  ?E   Sun09AM   0:00.00 (phpstorm)
username 27883   0.0  0.0  2423392    312 s000  R+   11:55AM   0:00.00 grep -i phps

What does it mean that process in parentheses? How to kill it?

0

3 Answers 3

6

I assume that you are trying to kill pis 17564 by kill -9 17564

However it is already dead, shown by ts name being in () in the ps output. (I learnt this as being a zombie process but that seems not to be correct but the solution is the same) It will go away when the process that started it reads its exit code.

The man page for ps says that state E means that the process is trying to exit. The command shown is actually the ucomm (accounting) keyword as the system can't find the actual arguments.

To remove the process the process that calls it has to read its exit code, however there has probably been a failure and it won't do that, so you have to kill the parent process.

ps -ajx will show the status and parent - note that Apple/BSD changed the parameters of ps in Tiger and ps -aux does not work ps aux sees a hack as that is what everyone uses. So you need to read the man page.

0
2

Having just had this problem with WhatsApp Desktop, for me it seems it was crashpad_handler that was stuck.

ps alx | egrep '[ /](PID|What)' (What being a part of the process name) returned 2 entries: the stuck process & the crashpad_handler for that process.

kill -9 PID of the crash handler took care of the problem in my case. YMMV of course :)

0

Having tried to kill Claude app from the terminal failed with any kill command but firing up activity monitor and just killing from there did the trick.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .