fixed: also catch SIGTERM

This commit is contained in:
Bob 2016-09-04 19:03:16 +02:00
parent 5c647e4c8f
commit c9db160bc4

View file

@ -115,7 +115,7 @@ CAmpSwitch::~CAmpSwitch()
bool CAmpSwitch::Setup() bool CAmpSwitch::Setup()
{ {
signal(SIGINT, SignalHandler); signal(SIGINT, SignalHandler);
signal(SIGINT, SignalHandler); signal(SIGTERM, SignalHandler);
if (pipe2(m_pipe, O_NONBLOCK) == -1) if (pipe2(m_pipe, O_NONBLOCK) == -1)
{ {