Skip to content

Commit

Permalink
Fixed issue #1303: POLLRDHUP is not supported outside of Gnu/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jul 31, 2016
1 parent 9edcb90 commit ab986ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdebug_com.c
Expand Up @@ -164,7 +164,7 @@ int xdebug_create_socket(const char *hostname, int dport TSRMLS_DC)
}

/* If the poll was successful but an error occured */
if (ufds[0].revents & (POLLERR | POLLHUP | POLLNVAL | POLLRDHUP)) {
if (ufds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) {
#if WIN32|WINNT
XDEBUG_LOG_PRINT(XG(remote_log_file), "W: Creating socket for '%s:%d', WSAPoll: %d.\n", hostname, dport, WSAGetLastError());
#else
Expand Down

0 comments on commit ab986ad

Please sign in to comment.