[icinga-checkins] icinga.org: icinga2/master: Don't use InitializeSpawnHelper on Windows

git at icinga.org git at icinga.org
Wed Oct 5 15:11:14 CEST 2016


Module: icinga2
Branch: master
Commit: 069de6c1213f878fbf832845b11c75d3e6cc5930
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=069de6c1213f878fbf832845b11c75d3e6cc5930

Author: Jean Flach <jean-marcel.flach at netways.de>
Date:   Wed Oct  5 15:02:42 2016 +0200

Don't use InitializeSpawnHelper on Windows

refs #8900

---

 lib/base/process.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/base/process.cpp b/lib/base/process.cpp
index ddd0644..e81a814 100644
--- a/lib/base/process.cpp
+++ b/lib/base/process.cpp
@@ -726,7 +726,9 @@ static BOOL CreatePipeOverlapped(HANDLE *outReadPipe, HANDLE *outWritePipe,
 
 void Process::Run(const boost::function<void(const ProcessResult&)>& callback)
 {
+#ifndef _WIN32
 	boost::call_once(l_SpawnHelperOnceFlag, &Process::InitializeSpawnHelper);
+#endif /* _WIN32 */
 	boost::call_once(l_ProcessOnceFlag, &Process::ThreadInitialize);
 
 	m_Result.ExecutionStart = Utility::GetTime();



More information about the icinga-checkins mailing list