aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-03 05:02:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-03 05:02:46 +0000
commitdefc85327a7cd0ad679cd3fe94f671d6549fe4a1 (patch)
tree2cc0e306f3ac1302ace9a035873694c574d19023 /lib/System/Unix
parent4bd03abe593222b26e84066223feb321bf738625 (diff)
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
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Program.inc4
1 files changed, 4 insertions, 0 deletions
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) {