Now using correct shutdown() constants.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -358,11 +358,9 @@ int socket_shutdown(struct socket *so, int how)
|
||||
{
|
||||
struct protosw *pr = so->so_proto;
|
||||
|
||||
/* adjust value so the first two bits define RECV and SEND */
|
||||
how++;
|
||||
if (how & SHUTDOWN_RECV)
|
||||
if (how == SHUT_RD || how == SHUT_RDWR)
|
||||
sorflush(so);
|
||||
if (how & SHUTDOWN_SEND)
|
||||
if (how == SHUT_WR || how == SHUT_RDWR)
|
||||
return pr->pr_userreq(so, PRU_SHUTDOWN, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user