Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151652586
D55247.id171760.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
581 B
Referenced Files
None
Subscribers
None
D55247.id171760.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 7:14 PM (2 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28667322
Default Alt Text
D55247.id171760.diff (581 B)
Attached To
Mode
D55247: rpc: Improve socket locking in svc_vc_accept()
Attached
Detach File
Event Timeline
Log In to Comment