Imported Upstream version 2.7
[ossec-hids.git] / src / shared / sig_op.c
index 7820f21..f31a654 100755 (executable)
@@ -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);