do not bother doing fcntl(F_SETSIG,fd) since

we use select() now. however we still do get
thread-cleanup signals from a thread when it
is done.
This commit is contained in:
mwells
2014-09-03 09:02:57 -07:00
parent cd97944d1e
commit bb76ffa8b2

@ -382,6 +382,11 @@ bool Loop::setNonBlocking ( int fd , long niceness ) {
g_errno = errno;
return log("loop: fcntl(NONBLOCK): %s.",strerror(errno));
}
// we use select()/poll now so skip stuff below
return true;
retry8:
// tell kernel to send the signal to us when fd is ready for read/write
if ( fcntl (fd, F_SETOWN , getpid() ) < 0 ) {
@ -625,6 +630,10 @@ void sigHandlerQueue_r ( int x , siginfo_t *info , void *v ) {
return;
}
// the stuff below should no longer be used since we
// do not use F_SETSIG now
return;
// extract the file descriptor that needs attention
int fd = info->si_fd;