2012-06-21 01:00:08 +00:00
|
|
|
/*
|
2014-05-23 08:19:00 +00:00
|
|
|
Serval DNA signal handlers
|
|
|
|
Copyright (C) 2014 Serval Project Inc.
|
2012-06-21 01:00:08 +00:00
|
|
|
Copyright (C) 2012 Paul Gardner-Stephen
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2013-12-09 07:52:18 +00:00
|
|
|
#include "constants.h"
|
2014-05-23 08:19:00 +00:00
|
|
|
#include "sighandlers.h"
|
2013-12-09 07:52:18 +00:00
|
|
|
|
2012-06-21 01:00:08 +00:00
|
|
|
int sigPipeFlag=0;
|
|
|
|
int sigIoFlag=0;
|
2013-12-20 01:23:13 +00:00
|
|
|
int sigIntFlag=0;
|
2012-06-21 01:00:08 +00:00
|
|
|
|
2013-12-09 07:52:18 +00:00
|
|
|
void sigPipeHandler(int UNUSED(signal))
|
2012-06-21 01:00:08 +00:00
|
|
|
{
|
|
|
|
sigPipeFlag++;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-12-09 07:52:18 +00:00
|
|
|
void sigIoHandler(int UNUSED(signal))
|
2012-06-21 01:00:08 +00:00
|
|
|
{
|
|
|
|
sigIoFlag++;
|
|
|
|
return;
|
|
|
|
}
|
2013-12-20 01:23:13 +00:00
|
|
|
|
|
|
|
void sigIntHandler(int UNUSED(signal))
|
|
|
|
{
|
|
|
|
sigIntFlag++;
|
2014-05-23 08:19:00 +00:00
|
|
|
}
|