Skip to content

Instantly share code, notes, and snippets.

@omo
Created April 8, 2012 11:56
Show Gist options
  • Save omo/2336850 to your computer and use it in GitHub Desktop.
Save omo/2336850 to your computer and use it in GitHub Desktop.
ProcessManager::resume
void ProcessManager::resume(ProcessBase* process)
{
...
// Now service the event.
try {
process->serve(*event);
} catch (const std::exception& e) {
std::cerr << "libprocess: " << process->pid
<< " terminating due to "
<< e.what() << std::endl;
terminate = true;
} catch (...) {
std::cerr << "libprocess: " << process->pid
<< " terminating due to unknown exception" << std::endl;
terminate = true;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment