mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 04:20:28 +08:00
Cygwin: AF_UNIX: sendmsg: call grab_admin_pkt
Check to see if the peer has sent a shutdown packet before calling saw_shutdown.
This commit is contained in:
parent
90e3a93741
commit
533c9b05b8
@ -2541,6 +2541,7 @@ fhandler_socket_unix::sendmsg (const struct msghdr *msg, int flags)
|
||||
set_errno (ENOTCONN);
|
||||
__leave;
|
||||
}
|
||||
grab_admin_pkt ();
|
||||
if (saw_shutdown () & _SHUT_SEND)
|
||||
{
|
||||
set_errno (EPIPE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user