From 37467740cf4c948cad1996cf8df3d6c01b8119d1 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 22 Feb 2010 13:47:17 +0000 Subject: [PATCH] Made burn_set_signal_handling() more suitable for cdrskin --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/init.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 63a19082..47c38896 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.02.17.141409" +#define Cdrskin_timestamP "2010.02.22.134904" diff --git a/libburn/trunk/libburn/init.c b/libburn/trunk/libburn/init.c index cd57979f..f3c35b4d 100644 --- a/libburn/trunk/libburn/init.c +++ b/libburn/trunk/libburn/init.c @@ -417,10 +417,16 @@ int burn_builtin_abort_handler(void *handle, int signum, int flag) void burn_set_signal_handling(void *handle, burn_abort_handler_t handler, int mode) { - if(handler == NULL && mode == 0) { + +/* + fprintf(stderr, "libburn_experimental: burn_set_signal_handling, handler==%lx mode=%d\n", (unsigned long) handler, mode); +*/ + + if(handler == NULL) { handler = burn_builtin_abort_handler; /* - fprintf(stderr, "libburn_experimental: activated burn_builtin_abort_handler() with handle '%s'\n",(handle==NULL ? "libburn : " : (char *) handle)); + if ((mode & ~4) == 0) + fprintf(stderr, "libburn_experimental: activated burn_builtin_abort_handler() with handle '%s'\n",(handle==NULL ? "libburn : " : (char *) handle)); */ }