]> andersk Git - openssh.git/blobdiff - log.c
- markus@cvs.openbsd.org 2002/07/19 15:43:33
[openssh.git] / log.c
diff --git a/log.c b/log.c
index 8c09ec1b261c6823e277c331b60d48de93a56e6d..96626d7d4dab379a948b8d6ceb86a333f7246916 100644 (file)
--- a/log.c
+++ b/log.c
@@ -34,7 +34,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.23 2002/07/06 01:00:49 deraadt Exp $");
+RCSID("$OpenBSD: log.c,v 1.24 2002/07/19 15:43:33 markus Exp $");
 
 #include "log.h"
 #include "xmalloc.h"
@@ -223,6 +223,18 @@ fatal_remove_cleanup(void (*proc) (void *context), void *context)
            (u_long) proc, (u_long) context);
 }
 
+/* Remove all cleanups, to be called after fork() */
+void
+fatal_remove_all_cleanups(void)
+{
+       struct fatal_cleanup *cu, *next_cu;
+
+       for (cu = fatal_cleanups; cu; cu = next_cu) {
+               next_cu = cu->next;
+               xfree(cu);
+       }
+}
+
 /* Cleanup and exit */
 void
 fatal_cleanup(void)
This page took 0.035052 seconds and 4 git commands to generate.