projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- add fortify to lintian
[ossec-hids.git]
/
src
/
shared
/
sig_op.c
diff --git
a/src/shared/sig_op.c
b/src/shared/sig_op.c
index
bde3a72
..
f31a654
100755
(executable)
--- a/
src/shared/sig_op.c
+++ b/
src/shared/sig_op.c
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/shared/sig_op.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
@@
-30,9
+31,9
@@
char *pidfile = NULL;
void HandleSIG()
{
merror(SIGNAL_RECV, pidfile);
void HandleSIG()
{
merror(SIGNAL_RECV, pidfile);
-
+
DeletePID(pidfile);
DeletePID(pidfile);
-
+
exit(1);
}
exit(1);
}
@@
-49,7
+50,7
@@
void StartSIG(char *process_name)
go to HandleSIG() */
pidfile = process_name;
go to HandleSIG() */
pidfile = process_name;
- signal(SIGHUP, SIG_IGN);
+ signal(SIGHUP, SIG_IGN);
signal(SIGINT, HandleSIG);
signal(SIGQUIT, HandleSIG);
signal(SIGTERM, HandleSIG);
signal(SIGINT, HandleSIG);
signal(SIGQUIT, HandleSIG);
signal(SIGTERM, HandleSIG);