File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 9797 {
9898 if (warning == WARNING_PROC_OVERSCHEDULED)
9999 resetOverSchedWarning ();
100+
101+ #ifdef _PROCESS_TIMEOUT_INTERRUPTS
102+ else if (warning == ERROR_PROC_TIMED_OUT)
103+ restart (); // default by restarting it
104+ #endif
100105 }
101106
102107 /* ********** PRIVATE *************/
Original file line number Diff line number Diff line change @@ -182,8 +182,9 @@ class Scheduler
182182#ifdef _PROCESS_EXCEPTION_HANDLING
183183 /*
184184 * Handle uncaught Process exceptions from Process process with Exception code e
185+ * By default just restart it
185186 */
186- virtual void handleException (Process &process, int e) { };
187+ virtual void handleException (Process &process, int e) { process. restart (); }
187188#endif
188189 // Inner queue object class to queue scheduler jobs
189190 class QueableOperation
You can’t perform that action at this time.
0 commit comments