From 3158c0f6516a0359a59edfa8089dec3cb94b0442 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 1 Apr 2009 11:40:38 +0000 Subject: [PATCH] * configure.in (rb_cv_fork_with_pthread): fail if the child process fail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b710b4f47a..434f702c96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 1 20:37:49 2009 Tanaka Akira + + * configure.in (rb_cv_fork_with_pthread): fail if the child process + fail. + Wed Apr 1 19:46:46 2009 Nobuyoshi Nakada * lib/mkmf.rb (create_makefile): support for parallel make. a diff --git a/configure.in b/configure.in index 32027a7c81..fffca333eb 100644 --- a/configure.in +++ b/configure.in @@ -1487,6 +1487,8 @@ main(int argc, char *argv[]) kill(pid, SIGKILL); return EXIT_FAILURE; } + if (!WIFEXITED(loc) || WEXITSTATUS(loc) != EXIT_SUCCESS) + return EXIT_FAILURE; } else { if (use_threads()) return EXIT_FAILURE;