|
|
Another way (better?)
That AppleScript has the same effect as choosing the Quit menu item in the application, which I dont believe will work for a non-responsive application. The following command sends the default TERM signal:
The available signals for stopping a progam, in order of niceness are TERM, QUIT, KILL.
If the TERM fails to terminate a program, the next step would be to try QUIT. If the program does not respond to QUIT either, then as a last resort the KILL signal should be used. KILL cannot be ignored by a program, the operating system will terminate it immediately. TERM and QUIT are designed to give a process the chance to clean up before exiting, whereas KILL will stop the process whatever it may be doing. You can see a list of all signals (not all are for killing) with kill -l. A summary of the ones for killing a program are: HUP Hangup - stop running. Sent when you log out or disconnect a modemThe kill command is named because of the nature of the default TERM signal, but in general it's used to send a variety of signals to programs. There are summaries on the man pages man kill and man killall but they're not very useful to learn from. Better descriptions can be found by googling something like "unix signals kill term quit". Having said all that, if I want to re-launch my Finder while it is still responding, I like to use option+click & hold on the Finder dock icon, then select re-launch, as described elsewhere on this page. regards, Maki. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|