Re: enhancing Force Quit or improving user-driven diagnostics

Kevin Reid <kpreid-M/[email protected]> Sun, 15 Jan 2012 12:51:20 -0500
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Jan 15, 2012, at 11:18, John Hawkinson wrote:

> I've had a number of cases recently where I would like to encourage
> some of my site's users to SIGABRT processes when they hang (so I can
> at least have a crash report to take to a software vendor or stare at
> myself, and maybe even a core dumps), but some of my users really
> really like to Force Quit when things go wrong (and they're in a hurry).
> 
> While trying to modify user behavior is hard, I'd like to give them the
> option to send SIGABRT and make it as easy as possible.
> 
> Is it possible to trap the Cmd-Opt-Escape sequence and redirect it to
> a custom implementation?

How about setting a signal handler for SIGTERM, the signal Force Quit sends?

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>