Browse Source

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

pull/2/head
Pierre d'Herbemont 19 years ago
parent
commit
b026a42b75
  1. 9
      src/vlc.c

9
src/vlc.c

@ -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);
#else
abort ();
#endif
}
pthread_setcancelstate (state, NULL);
}

Loading…
Cancel
Save