Skip to content

Commit

Permalink
Processes restarted if ERROR_PROC_TIMED_OUT or uncaught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard97 committed Jul 13, 2016
1 parent 99b2c43 commit 2cbbca1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ProcessScheduler/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ void Scheduler::handleHistOverFlow(uint8_t div)
longjmp(_env, e);
}

void Scheduler::handleException(Process &process, int e)
{
process.restart();
}


bool Scheduler::jmpHandler(int e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ProcessScheduler/Scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class Scheduler
* Handle uncaught Process exceptions from Process process with Exception code e
* By default just restart it
*/
virtual void handleException(Process &process, int e) { process.restart(); }
virtual void handleException(Process &process, int e);
#endif
// Inner queue object class to queue scheduler jobs
class QueableOperation
Expand Down

0 comments on commit 2cbbca1

Please sign in to comment.