1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-30 06:02:56 +00:00

some raw IP and UNIX datagram modes failed on BSD systems; test.sh: more stable timing, corrections for BSD

This commit is contained in:
Gerhard Rieger 2008-09-14 18:33:28 +02:00
parent 67e59494c4
commit f8496421f9
7 changed files with 97 additions and 41 deletions

View file

@ -905,10 +905,10 @@ int _socat(void) {
(fd2in->revents&(POLLIN|POLLHUP|POLLERR))) {
mayrd2 = true;
}
if (XIO_GETWRFD(sock1) >= 0 && (fd1out->revents&(POLLOUT|POLLERR))) {
if (XIO_GETWRFD(sock1) >= 0 && (fd1out->revents&(POLLOUT|POLLHUP|POLLERR))) {
maywr1 = true;
}
if (XIO_GETWRFD(sock2) >= 0 && (fd2out->revents&(POLLOUT|POLLERR))) {
if (XIO_GETWRFD(sock2) >= 0 && (fd2out->revents&(POLLOUT|POLLHUP|POLLERR))) {
maywr2 = true;
}