Updated shutdown() constants.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7207 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -358,10 +358,11 @@ 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 & SHUT_RD)
|
||||
if (how & SHUTDOWN_RECV)
|
||||
sorflush(so);
|
||||
if (how & SHUT_WR)
|
||||
if (how & SHUTDOWN_SEND)
|
||||
return pr->pr_userreq(so, PRU_SHUTDOWN, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user