[Mplayer-cvslog] CVS: main configure,1.414,1.415 mplayer.c,1.447,1.448

Atmosfear atmos4 at mplayer.dev.hu
Wed Mar 27 04:45:57 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv25442

Modified Files:
	configure mplayer.c 
Log Message:
Allow to disable crasj sighandler to enable creation of coredump files.


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.414
retrieving revision 1.415
diff -u -r1.414 -r1.415
--- configure	26 Mar 2002 12:43:01 -0000	1.414
+++ configure	27 Mar 2002 03:45:54 -0000	1.415
@@ -194,6 +194,7 @@
   --disable-fastmemcpy   disable 3dnow/sse/mmx optimized memcpy() [enable]
   --enable-debug[=1-3]   compile debugging information into mplayer [disable]
   --enable-profile       compile profiling information into mplayer [disable]
+  --disable-sighandler   disable sighandler for crashes [enable]
 
 Hazardous options a.k.a. "DO NOT BUGREPORT ANYTHING !"
   --disable-gcc-checking   disable gcc version checking [enable]
@@ -824,6 +825,7 @@
 _shm=auto
 _linux_devfs=no
 _i18n=no
+_sighandler=yes
 
 for ac_option do
   case "$ac_option" in
@@ -998,6 +1000,9 @@
   --enable-debug=*)
     _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2`
     ;;
+  --disable-sighandler)
+    _sighandler=no
+    ;;
 
   --enable-sse)	_sse=yes ;;
   --disable-sse) _sse=no ;;
@@ -1221,6 +1226,13 @@
 _mp_help="help_mp-${LINGUAS}.h"
 test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found"
 
+echocheck "enable sighandler"
+if test "$_sighandler" = yes ; then
+  _def_sighandler='#define ENABLE_SIGHANDLER 1'
+else
+  _def_sighandler='#undef ENABLE_SIGHANDLER'
+fi
+echores "$_sighandler"
 
 echocheck "runtime cpudetection"
 if test "$_runtime_cpudetection" = yes ; then
@@ -3343,6 +3355,9 @@
 
 #define USE_OSD 1
 #define USE_SUB 1
+
+/* enable/disable SIGHANDLER */
+$_def_sighandler
 
 /* Toggles debugging informations */
 $_def_debug

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.447
retrieving revision 1.448
diff -u -r1.447 -r1.448
--- mplayer.c	25 Mar 2002 03:07:27 -0000	1.447
+++ mplayer.c	27 Mar 2002 03:45:55 -0000	1.448
@@ -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 ********************
 




More information about the MPlayer-cvslog mailing list