From f30517a9e248ca212ca3df45dbf9fb34761452de Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 12 Mar 2014 13:19:06 +0100 Subject: [PATCH] Build fix. --- lib/base/process-unix.cpp | 4 ++-- lib/base/process-windows.cpp | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp index 0f7a0edaa..f1e6af791 100644 --- a/lib/base/process-unix.cpp +++ b/lib/base/process-unix.cpp @@ -65,8 +65,8 @@ void Process::StaticInitialize(void) << boost::errinfo_errno(errno)); } - Utility::SetCloExec(fds[0]); - Utility::SetCloExec(fds[1]); + Utility::SetCloExec(l_EventFDs[0]); + Utility::SetCloExec(l_EventFDs[1]); #endif /* HAVE_PIPE2 */ Utility::SetNonBlocking(l_EventFDs[0]); diff --git a/lib/base/process-windows.cpp b/lib/base/process-windows.cpp index fb8cfc4d7..f2f9ed974 100644 --- a/lib/base/process-windows.cpp +++ b/lib/base/process-windows.cpp @@ -22,13 +22,11 @@ #ifdef _WIN32 using namespace icinga; -ProcessResult Process::Run(void) +void Process::Run(const boost::function& callback) { - ProcessResult pr; - // TODO: implement - - return pr; + ProcessResult; + callback(pr); } #endif /* _WIN32 */