[BACK]Return to monitor.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/monitor.c between version 1.114 and 1.115

version 1.114, 2011/06/17 21:44:30 version 1.115, 2011/06/23 23:35:42
Line 462 
Line 462 
                 pfd[0].events = POLLIN;                  pfd[0].events = POLLIN;
                 pfd[1].fd = pmonitor->m_log_recvfd;                  pfd[1].fd = pmonitor->m_log_recvfd;
                 pfd[1].events = pfd[1].fd == -1 ? 0 : POLLIN;                  pfd[1].events = pfd[1].fd == -1 ? 0 : POLLIN;
                 if (poll(pfd, pfd[1].fd == -1 ? 1 : 2, -1) == -1)                  if (poll(pfd, pfd[1].fd == -1 ? 1 : 2, -1) == -1) {
                           if (errno == EINTR || errno == EAGAIN)
                                   continue;
                         fatal("%s: poll: %s", __func__, strerror(errno));                          fatal("%s: poll: %s", __func__, strerror(errno));
                   }
                 if (pfd[1].revents) {                  if (pfd[1].revents) {
                         /*                          /*
                          * Drain all log messages before processing next                           * Drain all log messages before processing next

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115