Commit b026a42b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

vlc.c: Make sure exiting after two Ctrl-C is instantaneous on Mac OS X.

parent 1e9ff270
......@@ -291,7 +291,16 @@ static void *SigHandler (void *data)
/* If user asks again more than 2 seconds later, die badly */
pthread_sigmask (SIG_UNBLOCK, exitset, NULL);
fprintf (stderr, "user insisted too much, dying badly\n");
#ifdef __APPLE__
/* On Mac OS X, use exit(-1) as it doesn't trigger
* backtrace generation, whereas abort() does.
* The backtrace generation trigger a Crash Dialog
* And takes way too much time, which is not what
* we want. */
exit (-1);
abort ();
pthread_setcancelstate (state, NULL);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment