]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autotest: fix file descriptor leak
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Nov 2010 09:21:04 +0000 (01:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Nov 2010 09:21:30 +0000 (01:21 -0800)
* lib/autotest/general.m4 (_AT_CHECK): Close AS_MESSAGE_LOG_FD
when running the test. Problem reported by Luke Mewburn in
<http://lists.gnu.org/archive/html/autoconf/2010-11/msg00036.html>.

ChangeLog
lib/autotest/general.m4

index 62358eafd517714cd20c84283279751045b66243..c1ec95d8ccd903c6b764406b28ea514485283d38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       autotest: fix file descriptor leak
+       * lib/autotest/general.m4 (_AT_CHECK): Close AS_MESSAGE_LOG_FD
+       when running the test.  Problem reported by Luke Mewburn in
+       <http://lists.gnu.org/archive/html/autoconf/2010-11/msg00036.html>.
+
 2010-11-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        autoconf: don't assume sys/stat.h and sys/types.h when testing C89
index 78f1cc6166b7b1b540740b3202177ee17035a85b..fc8d8660580dd15d018b36b2bdf88f0076ae5caf 100644 (file)
@@ -2190,7 +2190,7 @@ m4_define([_AT_CHECK],
 AS_ECHO(["$at_srcdir/AT_LINE: AS_ESCAPE([[$1]])"])
 _AT_DECIDE_TRACEABLE([$1]) _AT_LINE_ESCAPED
 ( $at_check_trace; [$1]
-) >>"$at_stdout" 2>>"$at_stderr"
+) >>"$at_stdout" 2>>"$at_stderr" AS_MESSAGE_LOG_FD>&-
 at_status=$? at_failed=false
 $at_check_filter
 m4_ifdef([AT_DIFF_STDERR($4)], [m4_indir([AT_DIFF_STDERR($4)])],