Project

General

Profile

Bug #1008 ยป vdrmanager_0.6_EINTR.diff

FireFly, 06/02/2012 05:52 PM

View differences:

select.cpp 2012-06-02 15:57:21.910618411 +0200
{
// poll for events
CreatePollfds();
int rc = poll(pollfds, clientsocketcount+1, -1);
int rc = 0;
while ((rc = poll( pollfds, clientsocketcount+1, -1 )) < 0)
{
if (errno != EINTR)
break;
}
if (rc < 0)
{
esyslog("ERROR (%s,%d): %s: %d %d %m", __FILE__, __LINE__, "poll", rc, errno);
    (1-1/1)