Prepare for 1.4.0 release.
[inoclam.git] / src / signal.hxx
blobcac45cc1a17a3a7a47ccad0f7b2e78e1b6066e95
1 /*
2 * inoclam - Inotify+ClamAV virus scanner
3 * Copyright (C) 2007, 2008, 2009 Vermont Department of Taxes
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __SIGNAL_HXX
20 #define __SIGNAL_HXX
22 /**
23 * Signal handler for SIGKILL, SIGQUIT, SIGINT.
24 * Raises a SIGUSR1 signal to tell nanohttp to stop.
25 * @param sig signal to handle
27 void handle_signal(int sig);
29 /**
30 * installs signal handlers (mostly SIG_IGN)
32 void install_signal_handlers();
34 /**
35 * Global variable used to determine if the program should halt. Will it ever halt? Only Alan Turing knows.
36 * @see handle_signal()
38 extern int exit_now;
40 #endif