Merge pull request #3207 from loogg/mlw

去除sal shut_down后释放socket导致close失败的问题
This commit is contained in:
Bernard Xiong 2019-11-21 06:33:20 +08:00 committed by GitHub
commit 5a40f932c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -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;

View File

@ -701,8 +701,6 @@ int sal_shutdown(int socket, int how)
error = -1;
}
/* delete socket */
socket_delete(socket);
return error;
}