aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix/Program.inc
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
commit1b399068ad523d1ced58ea80363b02934fb0788d (patch)
tree2cc0e306f3ac1302ace9a035873694c574d19023 /lib/System/Unix/Program.inc
parent9aa0827f4cbff8adaff54676f7f45033203b72e0 (diff)
downloadexternal_llvm-1b399068ad523d1ced58ea80363b02934fb0788d.zip
external_llvm-1b399068ad523d1ced58ea80363b02934fb0788d.tar.gz
external_llvm-1b399068ad523d1ced58ea80363b02934fb0788d.tar.bz2
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/Program.inc')
-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 3c5a54c..3a562e4 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) {