diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-01-21 14:37:40 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-01-21 15:20:26 -0500 |
commit | faf2c75e163fc72c37f25725adc39ca1b314b9b5 (patch) | |
tree | ed4be1adeaa469f27c1555a67013d469525b79c7 /src/mongo/util/processinfo.cpp | |
parent | 1299b1166ebc0856775566a4b7edd7b02b695734 (diff) | |
download | mongo-faf2c75e163fc72c37f25725adc39ca1b314b9b5.tar.gz |
SERVER-12417: Fix PidFileWiper destructor on Windows
Diffstat (limited to 'src/mongo/util/processinfo.cpp')
-rw-r--r-- | src/mongo/util/processinfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/processinfo.cpp b/src/mongo/util/processinfo.cpp index a963ea395c4..31970270664 100644 --- a/src/mongo/util/processinfo.cpp +++ b/src/mongo/util/processinfo.cpp @@ -30,6 +30,10 @@ namespace mongo { class PidFileWiper { public: ~PidFileWiper() { + if (path.empty()) { + return; + } + ofstream out( path.c_str() , ios_base::out ); out.close(); } |