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:
Waldemar Kornewald
2004-04-18 12:47:52 +00:00
parent f1730f62f5
commit 068bd8517e
+2 -4
View File
@@ -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;
}