m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/src/Attic/builtin.c,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/src/Attic/builtin.c,v [branch-1_4]
Date: Mon, 11 Sep 2006 13:17:22 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/09/11 13:17:21

Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.39
retrieving revision 1.1.1.1.2.40
diff -u -b -r1.1.1.1.2.39 -r1.1.1.1.2.40
--- src/builtin.c       7 Sep 2006 22:48:15 -0000       1.1.1.1.2.39
+++ src/builtin.c       11 Sep 2006 13:17:21 -0000      1.1.1.1.2.40
@@ -1291,15 +1291,16 @@
                "exit status out of range: `%d'", exit_code));
       exit_code = EXIT_FAILURE;
     }
+  /* Change debug stream back to stderr, to force flushing debug stream and
+     detect any errors it might have encountered.  */
+  debug_set_output (NULL);
+  debug_flush_files ();
   if (close_stream (stdout) != 0)
     {
       M4ERROR ((warning_status, errno, "write error"));
       if (exit_code == 0)
        exit_code = EXIT_FAILURE;
     }
-  /* Change debug stream back to stderr, to force flushing debug stream and
-     detect any errors it might have encountered.  */
-  debug_set_output (NULL);
   if (exit_code == 0 && retcode != 0)
     exit_code = retcode;
   exit (exit_code);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]