Skip to content

Commit e81ea1d

Browse files
committed
go/procmgr: implement the actual process manager in C++
refs #7600
1 parent eddb2e8 commit e81ea1d

File tree

5 files changed

+248
-688
lines changed

5 files changed

+248
-688
lines changed

lib/base/application.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ static void ReloadProcessCallback(const ProcessResult& pr)
380380
t.detach();
381381
}
382382

383+
#ifdef _WIN32
383384
pid_t Application::StartReloadProcess()
384385
{
385386
// prepare arguments
@@ -413,6 +414,7 @@ pid_t Application::StartReloadProcess()
413414

414415
return process->GetPID();
415416
}
417+
#endif /* _WIN32 */
416418

417419
/**
418420
* Signals the application to shut down during the next

lib/base/application.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ class Application : public ObjectImpl<Application> {
112112

113113
void RunEventLoop();
114114

115+
#ifdef _WIN32
115116
pid_t StartReloadProcess();
117+
#endif /* _WIN32 */
116118

117119
virtual void OnShutdown();
118120

0 commit comments

Comments
 (0)