diff mplayer.c @ 5367:658ea5d7316a

Allow to disable crasj sighandler to enable creation of coredump files.
author atmos4
date Wed, 27 Mar 2002 03:45:55 +0000
parents 0b024f661dd0
children 8a01cde9cf39
line wrap: on
line diff
--- a/mplayer.c	Wed Mar 27 03:07:07 2002 +0000
+++ b/mplayer.c	Wed Mar 27 03:45:55 2002 +0000
@@ -726,12 +726,14 @@
   signal(SIGINT,exit_sighandler);  // Interrupt from keyboard
 
   signal(SIGQUIT,exit_sighandler); // Quit from keyboard
+#ifdef ENABLE_SIGHANDLER
   // fatal errors:
   signal(SIGBUS,exit_sighandler);  // bus error
   signal(SIGSEGV,exit_sighandler); // segfault
   signal(SIGILL,exit_sighandler);  // illegal instruction
   signal(SIGFPE,exit_sighandler);  // floating point exc.
   signal(SIGABRT,exit_sighandler); // abort()
+#endif
 
 // ******************* Now, let's see the per-file stuff ********************