mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
debug: don't assert on signo != SIGCHLD
This commit is contained in:
parent
ea133382b0
commit
9685563338
@ -373,9 +373,15 @@ void Laminar::run() {
|
||||
int sigchld = signalfd(-1, &mask, 0);
|
||||
srv->addDescriptor(sigchld, [this](char* buf, size_t sz){
|
||||
struct signalfd_siginfo* siginfo = (struct signalfd_siginfo*) buf;
|
||||
KJ_ASSERT(siginfo->ssi_signo == SIGCHLD);
|
||||
// TODO: re-enable assertion when the cause for its triggering
|
||||
// is discovered and solved
|
||||
//KJ_ASSERT(siginfo->ssi_signo == SIGCHLD);
|
||||
if(siginfo->ssi_signo == SIGCHLD) {
|
||||
reapAdvance();
|
||||
assignNewJobs();
|
||||
} else {
|
||||
LLOG(ERROR, "Unexpected signo", siginfo->ssi_signo);
|
||||
}
|
||||
});
|
||||
|
||||
srv->start();
|
||||
|
Loading…
Reference in New Issue
Block a user