Revision 35164c50 sysdep/unix/io.c

View differences:

sysdep/unix/io.c
1372 1372
	    {
1373 1373
	      sock *s = current_sock;
1374 1374
	      int e;
1375
	      if (FD_ISSET(s->fd, &rd))
1375
	      if (FD_ISSET(s->fd, &rd) && s->rx_hook)
1376 1376
		do
1377 1377
		  {
1378 1378
		    e = sk_read(s);
1379 1379
		    if (s != current_sock)
1380 1380
		      goto next;
1381 1381
		  }
1382
		while (e);
1382
		while (e && s->rx_hook);
1383 1383
	      if (FD_ISSET(s->fd, &wr))
1384 1384
		do
1385 1385
		  {

Also available in: Unified diff