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;
|
struct protosw *pr = so->so_proto;
|
||||||
|
|
||||||
/* adjust value so the first two bits define RECV and SEND */
|
if (how == SHUT_RD || how == SHUT_RDWR)
|
||||||
how++;
|
|
||||||
if (how & SHUTDOWN_RECV)
|
|
||||||
sorflush(so);
|
sorflush(so);
|
||||||
if (how & SHUTDOWN_SEND)
|
if (how == SHUT_WR || how == SHUT_RDWR)
|
||||||
return pr->pr_userreq(so, PRU_SHUTDOWN, NULL, NULL, NULL);
|
return pr->pr_userreq(so, PRU_SHUTDOWN, NULL, NULL, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user