Make EPOLLRDHUP conditional to allow CentOS5 builds
This commit is contained in:
@ -45,6 +45,8 @@ extern int lm_enabled_logfiles_bitmask;
|
|||||||
* zombie management
|
* zombie management
|
||||||
* 29/08/14 Mark Riddoch Addition of thread status data, load average
|
* 29/08/14 Mark Riddoch Addition of thread status data, load average
|
||||||
* etc.
|
* etc.
|
||||||
|
* 23/09/14 Mark Riddoch Make use of RDHUP conditional to allow CentOS 5
|
||||||
|
* builds.
|
||||||
*
|
*
|
||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
@ -192,7 +194,11 @@ poll_add_dcb(DCB *dcb)
|
|||||||
|
|
||||||
CHK_DCB(dcb);
|
CHK_DCB(dcb);
|
||||||
|
|
||||||
|
#ifdef EPOLLRDHUP
|
||||||
ev.events = EPOLLIN | EPOLLOUT | EPOLLRDHUP | EPOLLHUP | EPOLLET;
|
ev.events = EPOLLIN | EPOLLOUT | EPOLLRDHUP | EPOLLHUP | EPOLLET;
|
||||||
|
#else
|
||||||
|
ev.events = EPOLLIN | EPOLLOUT | EPOLLHUP | EPOLLET;
|
||||||
|
#endif
|
||||||
ev.data.ptr = dcb;
|
ev.data.ptr = dcb;
|
||||||
|
|
||||||
/*<
|
/*<
|
||||||
@ -631,6 +637,7 @@ DCB *zombies = NULL;
|
|||||||
spinlock_release(&dcb->dcb_initlock);
|
spinlock_release(&dcb->dcb_initlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EPOLLRDHUP
|
||||||
if (ev & EPOLLRDHUP)
|
if (ev & EPOLLRDHUP)
|
||||||
{
|
{
|
||||||
int eno = 0;
|
int eno = 0;
|
||||||
@ -657,6 +664,7 @@ DCB *zombies = NULL;
|
|||||||
else
|
else
|
||||||
spinlock_release(&dcb->dcb_initlock);
|
spinlock_release(&dcb->dcb_initlock);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} /*< for */
|
} /*< for */
|
||||||
no_op = FALSE;
|
no_op = FALSE;
|
||||||
}
|
}
|
||||||
@ -785,12 +793,14 @@ char *str;
|
|||||||
strcat(str, "|");
|
strcat(str, "|");
|
||||||
strcat(str, "HUP");
|
strcat(str, "HUP");
|
||||||
}
|
}
|
||||||
|
#ifdef EPOLLRDHUP
|
||||||
if (event & EPOLLRDHUP)
|
if (event & EPOLLRDHUP)
|
||||||
{
|
{
|
||||||
if (*str)
|
if (*str)
|
||||||
strcat(str, "|");
|
strcat(str, "|");
|
||||||
strcat(str, "RDHUP");
|
strcat(str, "RDHUP");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user