Continued ripping up the source.
[aesalon.git] / monitor / src / ptrace / ExitObserver.cpp
blob241c39c99d9a70ae2a215785bdfdd9b7fccf18e9
1 #include <signal.h>
3 #include "ExitObserver.h"
4 #include "Initializer.h"
6 namespace Aesalon {
7 namespace Monitor {
8 namespace PTrace {
10 bool ExitObserver::handle_signal(int signal, int status) {
11 if(signal == SIGKILL || signal == -1) {
12 Initializer::get_instance()->get_program_manager()->set_running(false);
13 return true;
15 return false;
18 } // namespace PTrace
19 } // namespace Monitor
20 } // namespace Aesalon