From 03d14fd67d1b13ca6c57ad2fb6044566b164a827 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 9 Jun 2021 17:40:52 +0200 Subject: [PATCH] Set O_CLOEXEC on stats FD --- src/steamcompmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index a6bda66..7f843db 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -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 ) {