4
0
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:
Ken Brown 2020-10-21 08:01:01 -04:00
parent 90e3a93741
commit 533c9b05b8

View File

@ -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);