X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fshared%2Fsig_op.c;h=f31a6546e6cdbaf58a1ea2c336e8452dcca87a64;hp=bde3a726179fef69a594ab719d4b03ad395aa49a;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/shared/sig_op.c b/src/shared/sig_op.c index bde3a72..f31a654 100755 --- 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. @@ -30,9 +31,9 @@ char *pidfile = NULL; void HandleSIG() { merror(SIGNAL_RECV, pidfile); - + DeletePID(pidfile); - + exit(1); } @@ -49,7 +50,7 @@ void StartSIG(char *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);