libuv/src/unix
Ben Noordhuis fa0b08ff5a linux: fix epoll_pwait() sigmask size calculation
Revisit the fix from commit b705b53.  The problem with using sigset_t
and _NSIG is that the size of sigset_t and the value of _NSIG depend
on what headers libuv picks up first, <signal.h> or <asm/signal.h>.
With the former, sizeof(sigset_t) = 128; with the latter, it's 8.

Simply sidestep the issue by calculating the signal mask as a 64 bits
integer, without using sigset_t or _NSIG.

This is a partial cherry-pick of commit 751ac48 from the v1.x branch.

Original PR-URL: https://github.com/libuv/libuv/pull/83
PR-URL: https://github.com/libuv/libuv/pull/84
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2014-12-25 15:30:52 +01:00
..
aix.c windows, unix: remove dead code 2013-04-10 15:50:39 +02:00
async.c
core.c core: fix fake watcher list and count preservation 2013-11-12 15:24:33 +04:00
cygwin.c cygwin: remove unused variable 2013-04-10 18:30:37 +02:00
darwin-proctitle.c darwin: avoid calling GetCurrentProcess 2013-10-28 20:51:50 +04:00
darwin.c darwin: invoke mach_timebase_info only once 2014-06-25 01:32:05 +04:00
dl.c
error.c error: add EMLINK mapping 2014-04-03 16:37:25 +04:00
freebsd.c
fs.c unix: fix a possible memory leak in uv_fs_readdir 2013-12-18 12:05:47 +04:00
fsevents.c fsevents: support japaneese characters in path 2013-11-02 05:00:50 +04:00
getaddrinfo.c unix: fix bogus structure field name 2014-06-19 09:12:52 +02:00
internal.h unix: add flag for blocking SIGPROF during poll 2014-12-05 17:38:31 +01:00
kqueue.c unix: add flag for blocking SIGPROF during poll 2014-12-05 17:38:31 +01:00
linux-core.c linux: fix epoll_pwait() sigmask size calculation 2014-12-25 15:30:52 +01:00
linux-inotify.c
linux-syscalls.c linux: fix epoll_pwait() sigmask size calculation 2014-12-25 15:30:52 +01:00
linux-syscalls.h linux: fix epoll_pwait() sigmask size calculation 2014-12-25 15:30:52 +01:00
loop-watcher.c
loop.c unix, windows: add uv_loop_configure() function 2014-12-05 17:39:43 +01:00
netbsd.c
openbsd.c openbsd: fix obvious bug in uv_cpu_info 2014-01-21 15:06:30 +04:00
pipe.c Revert "unix: set O_NONBLOCK in uv_pipe_open()" 2013-09-28 20:50:45 +02:00
poll.c
process.c process: don't close stdio fds during spawn 2014-03-26 20:35:08 +04:00
proctitle.c
signal.c unix: fix non-synchronized access in signal.c 2013-10-18 17:10:04 +02:00
stream.c darwin: allocate enough space for select() hack 2014-09-08 09:09:21 +01:00
sunos.c unix: add flag for blocking SIGPROF during poll 2014-12-05 17:38:31 +01:00
tcp.c
thread.c unix: fix build when !defined(PTHREAD_MUTEX_ERRORCHECK) 2013-07-05 12:15:08 +02:00
threadpool.c
timer.c unix: make timers handle large timeouts 2013-03-21 14:54:36 +01:00
tty.c
udp.c linux: fix up SO_REUSEPORT back-port 2013-11-25 16:18:01 +01:00
uv-dtrace.d unix: dtrace probes for tick-start and tick-stop 2013-04-10 14:10:05 +02:00