[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/m4/output.c,v
From: |
Eric Blake |
Subject: |
Changes to m4/m4/output.c,v |
Date: |
Sat, 07 Oct 2006 05:02:57 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 06/10/07 05:02:56
Index: m4/output.c
===================================================================
RCS file: /sources/m4/m4/m4/output.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- m4/output.c 6 Oct 2006 18:24:31 -0000 1.31
+++ m4/output.c 7 Oct 2006 05:02:56 -0000 1.32
@@ -30,6 +30,7 @@
#include "binary-io.h"
#include "clean-temp.h"
+#include "exitfail.h"
#include "xvasprintf.h"
/* Define this to see runtime debug output. Implied by DEBUG. */
@@ -117,11 +118,13 @@
}
/* Clean up any temporary directory. Designed for use as an atexit
- handler. */
+ handler, where it is not safe to call exit() recursively; so this
+ calls _exit if a problem is encountered. */
static void
cleanup_tmpfile (void)
{
- cleanup_temp_dir (output_temp_dir);
+ if (cleanup_temp_dir (output_temp_dir) != 0)
+ _exit (exit_failure);
}
/* Create a temporary file open for reading and writing in a secure
- Changes to m4/m4/output.c,v, Eric Blake, 2006/10/03
- Changes to m4/m4/output.c,v, Eric Blake, 2006/10/06
- Changes to m4/m4/output.c,v,
Eric Blake <=
- Changes to m4/m4/output.c,v, Eric Blake, 2006/10/26
- Changes to m4/m4/output.c,v, Eric Blake, 2006/10/26
- Changes to m4/m4/output.c,v, Eric Blake, 2006/10/27