X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fshared%2Fsig_op.c;h=f31a6546e6cdbaf58a1ea2c336e8452dcca87a64;hb=280230a44cb9f9872652b6bb80de45a27af411f4;hp=7820f21f4a2e9a5385dbeb8934ed20383ebb4d5d;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/shared/sig_op.c b/src/shared/sig_op.c index 7820f21..f31a654 100755 --- a/src/shared/sig_op.c +++ b/src/shared/sig_op.c @@ -1,11 +1,12 @@ -/* @(#) $Id: sig_op.c,v 1.8 2009/06/24 18:53:09 dcid Exp $ */ +/* @(#) $Id: ./src/shared/sig_op.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -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);