mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-11-02 16:44:45 +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:
@@ -139,7 +139,10 @@ void Run::addEnv(std::string path) {
|
||||
void Run::abort() {
|
||||
// clear all pending scripts
|
||||
std::queue<Script>().swap(scripts);
|
||||
kill(-current_pid, SIGTERM);
|
||||
// if the Maybe is empty, wait() was already called on this process
|
||||
KJ_IF_MAYBE(p, current_pid) {
|
||||
kill(-*p, SIGTERM);
|
||||
}
|
||||
}
|
||||
|
||||
void Run::reaped(int status) {
|
||||
|
||||
Reference in New Issue
Block a user