Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On Mac OS X 10.6 I sometimes get processes that show up in "ps" as "E", which the man page says means they're "trying to exit", but they won't. "kill -9" doesn't work, neither does waiting. Is there any way to get rid of them? I usually wouldn't care, but they sometimes block an entry in the Dock.

share|improve this question
    
I had this forever every few weeks with the Finder. Annoying as hell, since I couldn't start another instance (at least not easily). –  Daniel Beck Oct 16 '10 at 21:35
    
Same problem on Mountain Lion 10.8.3, with the Finder process, only process state appears as "?E". –  Dan Apr 16 '13 at 14:50
    
did you try sudo kill -9? –  rednaw Aug 12 '13 at 12:20

2 Answers 2

Do you get an error when trying to kill? What if you specify the PID, like kill 12345?

Also, you can try a killall, like this: killall program but keep in mind it will kill anything that matches, so be a little specific with the program name, dont just put killall fi or something that may match more than one program, otherwise you may have unexpected results.

share|improve this answer
    
No, I do not get an error when I kill, with or without "-9". And I do kill by PID. –  schani Jul 19 '10 at 14:08
    
What processes refuse to be killed? Anything in /var/log/messages that might help? –  Mistiry Jul 19 '10 at 16:24

I'm having this issue with Mac OS X 10.7.5 as well. In my case, the process trying to exit is mono. It "lost" its parent (should have been bash, or probably Terminal) so there is no way to kill the parent. killall can't even find the process; neither can Activity Monitor. The problem is that this particular process caught hold of an IP port, and, as such, I cannot relaunch the Mono application I was running, since that port is locked until that process exits. One would hope that the release of the lock on the port would time out, but this apparently doesn't happen.

A similar (possibly duplicate) question has been asked here: how to kill process in Mac OS X and not have it restart on its own and also on ServerFault: http://serverfault.com/questions/85799/how-to-kill-an-exiting-process-on-os-x-state-e

The instructions there are also not helpful. Killing launchd and even logging in/out from that user has no effect. Unfortunately, it seems that only a reboot will work in this case.

Also note that this is different from a "zombie" process.

I've filed a bug report with Apple, but I assume they will ignore it (since the issue may be related either to Mono and/or the application I'm using, and having little relation to Mac OS X itself).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.