Build fix.

This commit is contained in:
Gunnar Beutner 2014-03-12 13:19:06 +01:00
parent f3c085df44
commit f30517a9e2
2 changed files with 5 additions and 7 deletions

View File

@ -65,8 +65,8 @@ void Process::StaticInitialize(void)
<< boost::errinfo_errno(errno)); << boost::errinfo_errno(errno));
} }
Utility::SetCloExec(fds[0]); Utility::SetCloExec(l_EventFDs[0]);
Utility::SetCloExec(fds[1]); Utility::SetCloExec(l_EventFDs[1]);
#endif /* HAVE_PIPE2 */ #endif /* HAVE_PIPE2 */
Utility::SetNonBlocking(l_EventFDs[0]); Utility::SetNonBlocking(l_EventFDs[0]);

View File

@ -22,13 +22,11 @@
#ifdef _WIN32 #ifdef _WIN32
using namespace icinga; using namespace icinga;
ProcessResult Process::Run(void) void Process::Run(const boost::function<void (const ProcessResult&)>& callback)
{ {
ProcessResult pr;
// TODO: implement // TODO: implement
ProcessResult;
return pr; callback(pr);
} }
#endif /* _WIN32 */ #endif /* _WIN32 */