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:
parent
67e59494c4
commit
f8496421f9
7 changed files with 97 additions and 41 deletions
4
socat.c
4
socat.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue