If you are Mac users you may have encountered that some times some applications refused to close and because of that you can not shut down your machine.
This is because these are called zombie processes stuck in some kind of dead lock and no matter what you do, it will not close. If you try quitting it or fore close it, it will not close. So how to over come this situation.
There is only one way to kill these application, and that is through command line. Here are the steps you have to follow.
1) Open Spotlight, Hit Command + Space
2) Type Terminal in it and hit enter.
Replace Application with name of application in above command. For example if Xcode is stuck then your command should be
This is because these are called zombie processes stuck in some kind of dead lock and no matter what you do, it will not close. If you try quitting it or fore close it, it will not close. So how to over come this situation.
There is only one way to kill these application, and that is through command line. Here are the steps you have to follow.
1) Open Spotlight, Hit Command + Space
2) Type Terminal in it and hit enter.
3) This will open terminal window. Now type following command.
kill $(ps aux | grep 'Application' | awk '{print $2}')
Replace Application with name of application in above command. For example if OpenOffice is stuck then your command should be
kill $(ps aux | grep 'OpenOffice' | awk '{print $2}')
kill $(ps aux | grep 'Xcode' | awk '{print $2}')
This will kill that application and then you can easily shutdown your machine. Hope this helps you.