From: Martin Mares Date: Fri, 15 Dec 2006 15:01:36 +0000 (+0100) Subject: Fixed bug in signal handling. X-Git-Tag: holmes-import~507^2~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=8c5b1e84628ab5927a20d9f5755826f5ed9cf990;p=libucw.git Fixed bug in signal handling. --- diff --git a/lib/sighandler.c b/lib/sighandler.c index 4991f9a3..2739ba10 100644 --- a/lib/sighandler.c +++ b/lib/sighandler.c @@ -19,7 +19,7 @@ static void signal_handler_internal(int sig) { struct ucwlib_context *ctx = ucwlib_thread_context(); - if (!ctx->signal_handlers[sig] || ctx->signal_handlers[sig](sig)) + if (!ctx->signal_handlers || !ctx->signal_handlers[sig] || ctx->signal_handlers[sig](sig)) abort(); }