* hlfsd/hlfsd.c (reaper, cleanup): don't use exit(3) in a signal
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 27 Feb 2005 23:53:22 +0000 (23:53 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 27 Feb 2005 23:53:22 +0000 (23:53 +0000)
handler, but use _exit(2) instead.

ChangeLog
hlfsd/hlfsd.c

index d74e9c80bc2f442a392abe42496945f1eeaaf95b..10f08f366d06c1b424c761c89d020f784c8c5af7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-02-27  Erez Zadok  <ezk@cs.sunysb.edu>
 
+       * hlfsd/hlfsd.c (reaper, cleanup): don't use exit(3) in a signal
+       handler, but use _exit(2) instead.
+
        * amd/amd.c (parent_exit): This signal handler is called during
        Amd initialization.  The parent forks a child to do all the hard
        automounting work, and waits for a SIGQUIT signal from the child.
index b43306b1db351e84d0dd781944828881de4eb060..6803ae97796a1e64115f1a00b13ba8803313b223 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: hlfsd.c,v 1.31 2005/02/17 03:37:42 ezk Exp $
+ * $Id: hlfsd.c,v 1.32 2005/02/27 23:53:22 ezk Exp $
  *
  * HLFSD was written at Columbia University Computer Science Department, by
  * Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu>
@@ -868,7 +868,7 @@ cleanup(int signum)
   }
 
   plog(XLOG_INFO, "hlfsd terminating with status 0\n");
-  exit(0);
+  _exit(0);
 }
 
 
@@ -878,7 +878,7 @@ reaper(int signum)
   int result;
 
   if (wait(&result) == masterpid) {
-    exit(4);
+    _exit(4);
   }
 }