Set O_CLOEXEC on stats FD
This commit is contained in:
parent
7c3dff8d57
commit
03d14fd67d
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ void statsThreadMain( void )
|
|||
|
||||
while ( statsPipeFD == -1 )
|
||||
{
|
||||
statsPipeFD = open( statsThreadPath.c_str(), O_WRONLY );
|
||||
statsPipeFD = open( statsThreadPath.c_str(), O_WRONLY | O_CLOEXEC );
|
||||
|
||||
if ( statsPipeFD == -1 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue