Bug fix for 2.0.35 in TCP Urgent data and select

Philip Gladstone (philip@raptor.com)
Thu, 16 Jul 1998 18:24:56 -0400


Hi,
The 2.0.3x series has an unfortunate bug that results
in a select with exception fds set to return even if the
urgent data has already been read. The attached one-liner fixes
the problem.

Philip

--- linux/net/ipv4/tcp.c.urg Thu Jul 16 17:07:57 1998
+++ linux/net/ipv4/tcp.c Thu Jul 16 17:07:59 1998
@@ -956,7 +956,7 @@
return 1;

case SEL_EX:
- if (sk->urg_data)
+ if (sk->urg_data & URG_VALID)
return 1;
break;
}

-- 
Philip Gladstone                           +1 781 530 2461
Raptor Systems / Axent Technologies 
Waltham, MA         		    http://www.raptor.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html