Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2004-03-22 18:40:42 +0300
committerZoltan Varga <vargaz@gmail.com>2004-03-22 18:40:42 +0300
commit01d63e525c59afabbe14f5b0cccf60af2a958061 (patch)
treeb70990374a0887a0fe113cc03e03dd65c084f182 /configure.in
parent0147ab6cff269ed33da2495ba3ea1485cc811cfd (diff)
2004-03-22 Zoltan Varga <vargaz@freemail.hu>
* configure.in: Speedup successful sigaltstack test. svn path=/trunk/mono/; revision=24414
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 97b260be312..c00e3384cc4 100644
--- a/configure.in
+++ b/configure.in
@@ -680,6 +680,7 @@ if test x$platform_win32 = xno; then
{
pid_t son;
int status;
+ int i;
son = fork ();
if (son == -1) {
@@ -691,10 +692,12 @@ if test x$platform_win32 = xno; then
return 0;
}
- sleep (3);
- waitpid (son, &status, WNOHANG);
- if (WIFEXITED (status) && WEXITSTATUS (status) == 0)
- return 0;
+ for (i = 0; i < 3; ++i) {
+ sleep (1);
+ waitpid (son, &status, WNOHANG);
+ if (WIFEXITED (status) && WEXITSTATUS (status) == 0)
+ return 0;
+ }
kill (son, SIGKILL);
return 1;