Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b026a42b
Commit
b026a42b
authored
Feb 23, 2008
by
Pierre d'Herbemont
Browse files
vlc.c: Make sure exiting after two Ctrl-C is instantaneous on Mac OS X.
parent
1e9ff270
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vlc.c
View file @
b026a42b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment