diff --git a/core/reactor.cc b/core/reactor.cc index 6e8d94ba5a..ba0651978d 100644 --- a/core/reactor.cc +++ b/core/reactor.cc @@ -204,6 +204,11 @@ reactor::reactor() sev.sigev_signo = SIGALRM; r = timer_create(CLOCK_REALTIME, &sev, &_timer); assert(r >= 0); + sigset_t mask; + sigemptyset(&mask); + sigaddset(&mask, SIGALRM); + r = ::sigprocmask(SIG_BLOCK, &mask, NULL); + assert(r == 0); #endif memory::set_reclaim_hook([this] (std::function reclaim_fn) { // push it in the front of the queue so we reclaim memory quickly