Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140965677
D15021.id42443.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
511 B
Referenced Files
None
Subscribers
None
D15021.id42443.diff
View Options
Index: stable/11/sys/kern/uipc_socket.c
===================================================================
--- stable/11/sys/kern/uipc_socket.c
+++ stable/11/sys/kern/uipc_socket.c
@@ -2359,7 +2359,8 @@
* both backward-compatibility and POSIX requirements by forcing
* ENOTCONN but still asking protocol to perform pru_shutdown().
*/
- if (so->so_type != SOCK_DGRAM)
+ if (so->so_type != SOCK_DGRAM &&
+ !(so->so_options & SO_ACCEPTCONN))
return (ENOTCONN);
soerror_enotconn = 1;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 4:43 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27402597
Default Alt Text
D15021.id42443.diff (511 B)
Attached To
Mode
D15021: Wakup applications with shutdown on listen sockets (stable/11 version)
Attached
Detach File
Event Timeline
Log In to Comment