From d2c47932e9b9daa882202beb13739c8fdf1765df Mon Sep 17 00:00:00 2001 From: sc Date: Fri, 22 Dec 2000 10:19:32 +0000 Subject: Added error messages Added test of Looping after handling of signals --- comm/Scheduler.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'comm/Scheduler.cc') diff --git a/comm/Scheduler.cc b/comm/Scheduler.cc index 9140abe..5290a61 100644 --- a/comm/Scheduler.cc +++ b/comm/Scheduler.cc @@ -17,6 +17,7 @@ #include "Scheduler.h" #include "TimeOut.h" #include "SignalHandler.h" +#include "error.h" #include // for NSIG #include @@ -542,6 +543,11 @@ IvlScheduler :: LoopScan (bool nointr) if (SigFired) HandleDeferredSignals (); + if (!Looping) { + ExecHooks (true); + return isMpxTerminated; + } + #if 0 /* Then, timers */ IvlCoreTimer::Fire (&Timers); @@ -588,6 +594,7 @@ IvlScheduler :: LoopScan (bool nointr) if (nointr && nb_pending_fd == -1 && errno == EINTR) continue; else { + SysError (ErrWarn, "IvlScheduler::LoopScan failed"); ExecHooks (true); return isMpxError; } -- cgit v1.1