Set O_CLOEXEC on stats FD

This commit is contained in:
Simon Ser 2021-06-09 17:40:52 +02:00
parent 7c3dff8d57
commit 03d14fd67d

View file

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