1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2017-02-23 22:43:09 +01:00
parent 961ba9ec6c
commit 8f3e11b162

View file

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