mirror of
https://repo.or.cz/socat.git
synced 2025-01-09 14:32:33 +00:00
in loop message show inactive fds as -1
This commit is contained in:
parent
38f6677892
commit
2b48a7daea
1 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,10 @@ int _socat(xiofile_t *xfd1, xiofile_t *xfd2) {
|
||||||
total_timeout = xioparams->total_timeout;
|
total_timeout = xioparams->total_timeout;
|
||||||
|
|
||||||
Notice4("starting data transfer loop with FDs [%d,%d] and [%d,%d]",
|
Notice4("starting data transfer loop with FDs [%d,%d] and [%d,%d]",
|
||||||
XIO_GETRDFD(sock1), XIO_GETWRFD(sock1),
|
XIO_READABLE(sock1)?XIO_GETRDFD(sock1):-1,
|
||||||
XIO_GETRDFD(sock2), XIO_GETWRFD(sock2));
|
XIO_WRITABLE(sock1)?XIO_GETWRFD(sock1):-1,
|
||||||
|
XIO_READABLE(sock2)?XIO_GETRDFD(sock2):-1,
|
||||||
|
XIO_WRITABLE(sock2)?XIO_GETWRFD(sock2):-1);
|
||||||
while (XIO_RDSTREAM(sock1)->eof <= 1 ||
|
while (XIO_RDSTREAM(sock1)->eof <= 1 ||
|
||||||
XIO_RDSTREAM(sock2)->eof <= 1) {
|
XIO_RDSTREAM(sock2)->eof <= 1) {
|
||||||
struct timeval timeout, *to = NULL;
|
struct timeval timeout, *to = NULL;
|
||||||
|
|
Loading…
Reference in a new issue