From defc85327a7cd0ad679cd3fe94f671d6549fe4a1 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 3 Aug 2009 05:02:46 +0000 Subject: Fix a race condition in getting the process exit code on Win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77953 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Program.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/System/Unix/Program.inc') diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 3c5a54cffc..3a562e45d4 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -35,6 +35,10 @@ namespace llvm { using namespace sys; +Program::Program() : Pid_(0) {} + +Program::~Program() {} + // This function just uses the PATH environment variable to find the program. Path Program::FindProgramByName(const std::string& progName) { -- cgit v1.2.3