Make e-mail notification optional for both virus found and file creat/mod.
[inoclam.git] / signal.hxx
blob5b5399d8b9ea396ab0fba4fd887a9566b0b122c9
1 /*
2 * inoclam - Inotify+ClamAV virus scanner
3 * Copyright (C) 2007 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 as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * Contributor(s):
20 * Tom Cort <tom.cort@state.vt.us>
23 #ifndef __SIGNAL_HXX
24 #define __SIGNAL_HXX
26 /**
27 * Signal handler for SIGKILL, SIGQUIT, SIGINT.
28 * Raises a SIGUSR1 signal to tell nanohttp to stop.
29 * @param sig signal to handle
31 void handle_signal(int sig);
33 /**
34 * installs signal handlers (mostly SIG_IGN)
36 void install_signal_handlers();
38 /**
39 * Global variable used to determine if the program should halt. Will it ever halt? Only Alan Turing knows.
40 * @see handle_signal()
42 extern int exit_now;
44 #endif