s4-packet: make packet_recv_disable() a lot more efficient
authorAndrew Tridgell <tridge@samba.org>
Tue, 7 Sep 2010 01:55:47 +0000 (11:55 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 7 Sep 2010 02:55:27 +0000 (12:55 +1000)
commita8bac4a09a4a81c280c62fb4dcdbd0e61c782479
tree3f17972292a4d07cc7cdb4ae0ad064805c1697d8
parentcad0219e69d2acc766583083c0738c2b9ea3901f
s4-packet: make packet_recv_disable() a lot more efficient

this avoids doing an epoll system call when we want to prevent receipt
of packets on a socket, unless there actually is a packet to receive.
source4/lib/stream/packet.c