1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

use kj's onChildExit mechanism

This reduces code and allows for more idiosyncratic use of Promises.
Requires latest capnproto git.

Part of #49 refactor
This commit is contained in:
Oliver Giles
2018-08-03 14:36:24 +03:00
parent 4ffc22c657
commit a81492e5bc
12 changed files with 33 additions and 59 deletions

View File

@@ -31,7 +31,7 @@ protected:
}
void wait() {
int state = -1;
waitpid(run.current_pid, &state, 0);
waitpid(run.current_pid.orDefault(0), &state, 0);
run.reaped(state);
}
void runAll() {

View File

@@ -66,7 +66,6 @@ public:
MOCK_METHOD4(setParam, bool(std::string job, uint buildNum, std::string param, std::string value));
MOCK_METHOD0(getCustomCss, std::string());
MOCK_METHOD0(abortAll, void());
MOCK_METHOD0(reapChildren, void());
MOCK_METHOD0(notifyConfigChanged, void());
};