提交 c531fdc7 编写于 作者: Comeon_fly's avatar Comeon_fly

去除sal shut_down后释放socket导致close失败的问题

上级 69e8c032
......@@ -105,9 +105,7 @@ int shutdown(int s, int how)
rt_set_errno(-ENOTSOCK);
error = -1;
}
/* socket has been closed, delete it from file system fd */
fd_put(d);
fd_put(d);
return error;
......
......@@ -701,8 +701,6 @@ int sal_shutdown(int socket, int how)
error = -1;
}
/* delete socket */
socket_delete(socket);
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册