Skip to content

Commit

Permalink
fix of searchd --stopwait behaviour (it failed when the running searc…
Browse files Browse the repository at this point in the history
…hd was running under another user)
  • Loading branch information
manticoresearch committed Aug 26, 2021
1 parent a9638f3 commit 3506cbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/searchd.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 3506cbe

Please sign in to comment.