Page MenuHomeFreeBSD

D55247.1795394226.diff
No OneTemporary

Authored By
Unknown
Size
581 B
Referenced Files
None
Subscribers
None

D55247.1795394226.diff

diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c
--- a/sys/rpc/svc_vc.c
+++ b/sys/rpc/svc_vc.c
@@ -389,12 +389,15 @@
SOLISTEN_LOCK(head);
nbio = head->so_state & SS_NBIO;
head->so_state |= SS_NBIO;
- error = solisten_dequeue(head, &so, 0);
- head->so_state &= (nbio & ~SS_NBIO);
+ error = solisten_dequeue(head, &so, nbio ? SOCK_NONBLOCK : 0);
+ if (nbio == 0) {
+ SOLISTEN_LOCK(head);
+ head->so_state &= ~SS_NBIO;
+ SOLISTEN_UNLOCK(head);
+ }
if (error)
goto done;
- so->so_state |= nbio;
*sop = so;
/* connection has been removed from the listen queue */

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 12:37 AM (3 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41919140
Default Alt Text
D55247.1795394226.diff (581 B)

Event Timeline