projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch to libev.
[apps/pfixtools.git]
/
common
/
common.c
diff --git
a/common/common.c
b/common/common.c
index
43b2bf2
..
dc0e194
100644
(file)
--- a/
common/common.c
+++ b/
common/common.c
@@
-41,9
+41,6
@@
#include "common.h"
#include "common.h"
-sig_atomic_t sigint = false;
-sig_atomic_t sighup = false;
-
bool daemon_process = true;
int log_level = LOG_INFO;
bool log_syslog = false;
bool daemon_process = true;
int log_level = LOG_INFO;
bool log_syslog = false;
@@
-53,15
+50,6
@@
static FILE *pidfile = NULL;
void common_sighandler(int sig)
{
switch (sig) {
void common_sighandler(int sig)
{
switch (sig) {
- case SIGTERM:
- case SIGINT:
- sigint = true;
- return;
-
- case SIGHUP:
- sighup = true;
- return;
-
default:
err("Killed (got signal %d)...", sig);
exit(-1);
default:
err("Killed (got signal %d)...", sig);
exit(-1);