Made burn_set_signal_handling() more suitable for cdrskin

This commit is contained in:
Thomas Schmitt 2010-02-22 13:47:17 +00:00
parent 3aba67bfe8
commit 37467740cf
2 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.02.17.141409" #define Cdrskin_timestamP "2010.02.22.134904"

View File

@ -417,9 +417,15 @@ int burn_builtin_abort_handler(void *handle, int signum, int flag)
void burn_set_signal_handling(void *handle, burn_abort_handler_t handler, void burn_set_signal_handling(void *handle, burn_abort_handler_t handler,
int mode) 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; handler = burn_builtin_abort_handler;
/* /*
if ((mode & ~4) == 0)
fprintf(stderr, "libburn_experimental: activated burn_builtin_abort_handler() with handle '%s'\n",(handle==NULL ? "libburn : " : (char *) handle)); fprintf(stderr, "libburn_experimental: activated burn_builtin_abort_handler() with handle '%s'\n",(handle==NULL ? "libburn : " : (char *) handle));
*/ */