mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix missing mutex in Unix socket shutdown.
This commit is contained in:
parent
961ba9ec6c
commit
8f3e11b162
1 changed files with 1 additions and 0 deletions
|
@ -386,6 +386,7 @@ int StreamSocket::setsockopt(ioctx_t* ctx, int level, int option_name,
|
|||
|
||||
int StreamSocket::shutdown(ioctx_t* /*ctx*/, int how)
|
||||
{
|
||||
ScopedLock lock(&socket_lock);
|
||||
if ( how & SHUT_RD )
|
||||
incoming.Disconnect();
|
||||
if ( how & SHUT_WR )
|
||||
|
|
Loading…
Reference in a new issue