From 5e52d50a1ae65de7545213b433e06e993e2d24bf Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 15 Dec 2006 16:02:19 +0100 Subject: [PATCH] Fixed bug in signal handling. (The signal handler table needn't be defined in the current thread at this point.) --- lib/sighandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.2