diff --git a/src/searchd.cpp b/src/searchd.cpp index 861313ac42..7751ba6e8e 100644 --- a/src/searchd.cpp +++ b/src/searchd.cpp @@ -18957,7 +18957,9 @@ void StopOrStopWaitAnother ( CSphVariant * v, bool bWait ) REQUIRES ( MainThread { sPipeName = GetNamedPipeName ( iPid ); ::unlink ( sPipeName.cstr () ); // avoid garbage to pollute us + int iMask = umask ( 0 ); iPipeCreated = mkfifo ( sPipeName.cstr(), 0666 ); + umask ( iMask ); if ( iPipeCreated!=-1 ) fdPipe = ::open ( sPipeName.cstr(), O_RDONLY | O_NONBLOCK );