Fix missing mutex in Unix socket shutdown.
This commit is contained in:
parent
961ba9ec6c
commit
8f3e11b162
|
@ -386,6 +386,7 @@ int StreamSocket::setsockopt(ioctx_t* ctx, int level, int option_name,
|
||||||
|
|
||||||
int StreamSocket::shutdown(ioctx_t* /*ctx*/, int how)
|
int StreamSocket::shutdown(ioctx_t* /*ctx*/, int how)
|
||||||
{
|
{
|
||||||
|
ScopedLock lock(&socket_lock);
|
||||||
if ( how & SHUT_RD )
|
if ( how & SHUT_RD )
|
||||||
incoming.Disconnect();
|
incoming.Disconnect();
|
||||||
if ( how & SHUT_WR )
|
if ( how & SHUT_WR )
|
||||||
|
|
Loading…
Reference in New Issue