From dfca03df0761c526bba84af0baa37ac9dbb5b42d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 28 Apr 2017 10:35:45 +0000 Subject: Fix NSIG definition (max+1 instead of max) --- src/libstddjb/selfpipe_finish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstddjb/selfpipe_finish.c') diff --git a/src/libstddjb/selfpipe_finish.c b/src/libstddjb/selfpipe_finish.c index 5d9b3fd..0635efb 100644 --- a/src/libstddjb/selfpipe_finish.c +++ b/src/libstddjb/selfpipe_finish.c @@ -25,7 +25,7 @@ void selfpipe_finish (void) void selfpipe_finish (void) { - sig_restoreto(&selfpipe_caught, NSIG) ; + sig_restoreto(&selfpipe_caught, NSIG-1) ; sigemptyset(&selfpipe_caught) ; fd_close(selfpipe[1]) ; fd_close(selfpipe[0]) ; -- cgit v1.2.3