diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-11-20 14:00:36 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-11-20 14:00:36 +0000 |
commit | 2112179572a61fa3ed7663d196bb123fe86f1b4b (patch) | |
tree | d50615d82c85d02e307da7e9e718d9e0feb71b6a | |
parent | 4eac974bd19b96aad75ee51285cb6193a5c50396 (diff) | |
download | xine-lib-2112179572a61fa3ed7663d196bb123fe86f1b4b.tar.gz xine-lib-2112179572a61fa3ed7663d196bb123fe86f1b4b.tar.bz2 |
signal should be enough
CVS patchset: 1087
CVS date: 2001/11/20 14:00:36
-rw-r--r-- | src/xine-engine/load_plugins.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 728b1870d..26b16e6fb 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.56 2001/11/18 15:08:31 guenter Exp $ + * $Id: load_plugins.c,v 1.57 2001/11/20 14:00:36 miguelfreitas Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -65,12 +65,8 @@ static char *plugin_name; #else -#if HAVE_SIGACTION -struct sigaction old_sig_act; -#else void (*old_segv_handler)(int); -#endif - + static void segv_handler (int hubba) { printf ("\nload_plugins: Initialization of plugin '%s' failed (segmentation fault).\n",plugin_name); printf ("load_plugins: You probably need to remove the offending file.\n"); @@ -79,24 +75,11 @@ static void segv_handler (int hubba) { } static void install_segv_handler(void){ -#if HAVE_SIGACTION - { - struct sigaction sig_act; - memset (&sig_act, 0, sizeof(sig_act)); - sig_act.sa_handler = segv_handler; - sigaction (SIGSEGV, &sig_act, &old_sig_act); - } -#else old_segv_handler = signal (SIGSEGV, segv_handler); -#endif } static void remove_segv_handler(void){ -#if HAVE_SIGACTION - sigaction (SIGSEGV, &old_sig_act, NULL ); -#else signal (SIGSEGV, old_segv_handler ); -#endif } #endif |