This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU M4 source repository".
http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=3d14a9bdc82534da8e2bed18125a612344a6a9c9 The branch, branch-1.4 has been updated via 3d14a9bdc82534da8e2bed18125a612344a6a9c9 (commit) from b22e82c2aab490fad5bc3b3043516d8c52006c0f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3d14a9bdc82534da8e2bed18125a612344a6a9c9 Author: Eric Blake <[email protected]> Date: Tue Jul 21 21:38:41 2009 -0600 Fix testsuite on Solaris. * doc/m4.texinfo (Command line files): Tolerate different spelling of EBADF. * src/builtin.c (m4_esyscmd): Clear errno before reaping. Signed-off-by: Eric Blake <[email protected]> ----------------------------------------------------------------------- Summary of changes: ChangeLog | 7 +++++++ doc/m4.texinfo | 11 ++++++++++- src/builtin.c | 1 + 3 files changed, 18 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2d5c51..ceca154 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-07-22 Eric Blake <[email protected]> + + Fix testsuite on Solaris. + * doc/m4.texinfo (Command line files): Tolerate different spelling + of EBADF. + * src/builtin.c (m4_esyscmd): Clear errno before reaping. + 2009-07-21 Eric Blake <[email protected]> Fix testsuite on mingw. diff --git a/doc/m4.texinfo b/doc/m4.texinfo index 9195e06..b95d109 100644 --- a/doc/m4.texinfo +++ b/doc/m4.texinfo @@ -961,8 +961,10 @@ options. @error{}m4: cannot open `Makefile/': Not a directory @end example -...@comment Test that closed stderr does not cause a crash. +...@comment Test that closed stderr does not cause a crash. Not all +...@comment systems have the same message for EBADF. +...@comment xerr: ignore @example ifdef(`__unix__', , `errprint(` skipping: syscmd does not have unix semantics @@ -972,6 +974,13 @@ syscmd([echo | ']__program__[' >&-])dnl @error{}m4: write error: Bad file descriptor sysval @result{}1 +...@end example + +...@example +ifdef(`__unix__', , + `errprint(` skipping: syscmd does not have unix semantics +')m4exit(`77')')dnl +changequote(`[', `]')dnl syscmd([echo 'esyscmd(echo hi >&2)dnl' > tmp.m4 \ && ']__program__[' tmp.m4 <&- >&- \ && rm tmp.m4])sysval diff --git a/src/builtin.c b/src/builtin.c index d416a00..5a097f3 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -1042,6 +1042,7 @@ m4_esyscmd (struct obstack *obs, int argc, token_data **argv) } if (ferror (pin) || fclose (pin)) M4ERROR ((EXIT_FAILURE, errno, "cannot read pipe")); + errno = 0; status = wait_subprocess (child, ARG (0), false, true, true, false, &sig_status); if (sig_status) hooks/post-receive -- GNU M4 source repository
