Changeset b026a42b75599d9cce82bca15302e2831c24c910
- Timestamp:
- 02/23/08 22:22:10
(7 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1203801730 +0000
- git-parent:
[1e9ff27051a05325fec8ce147d3979ae748836cb]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1203801730 +0000
- Message:
vlc.c: Make sure exiting after two Ctrl-C is instantaneous on Mac OS X.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r99fab90 |
rb026a42 |
|
| 292 | 292 | pthread_sigmask (SIG_UNBLOCK, exitset, NULL); |
|---|
| 293 | 293 | fprintf (stderr, "user insisted too much, dying badly\n"); |
|---|
| | 294 | #ifdef __APPLE__ |
|---|
| | 295 | /* On Mac OS X, use exit(-1) as it doesn't trigger |
|---|
| | 296 | * backtrace generation, whereas abort() does. |
|---|
| | 297 | * The backtrace generation trigger a Crash Dialog |
|---|
| | 298 | * And takes way too much time, which is not what |
|---|
| | 299 | * we want. */ |
|---|
| | 300 | exit (-1); |
|---|
| | 301 | #else |
|---|
| 294 | 302 | abort (); |
|---|
| | 303 | #endif |
|---|
| 295 | 304 | } |
|---|
| 296 | 305 | pthread_setcancelstate (state, NULL); |
|---|