diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 10:35:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 10:35:45 +0000 |
commit | dfca03df0761c526bba84af0baa37ac9dbb5b42d (patch) | |
tree | 8aa342f6a8217dd2489a2a02f10f0f8ac32c59e3 /src/libstddjb/selfpipe_finish.c | |
parent | 3d480e3f202fc895fc7d36bcf94c654765f647dd (diff) | |
download | skalibs-dfca03df0761c526bba84af0baa37ac9dbb5b42d.tar.xz |
Fix NSIG definition (max+1 instead of max)
Diffstat (limited to 'src/libstddjb/selfpipe_finish.c')
-rw-r--r-- | src/libstddjb/selfpipe_finish.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]) ; |