From b9d587cf833bb6bc77558415b877bbaf9acc995c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 28 Mar 2002 02:42:25 +0000 Subject: a dodgy fix for a dodgy race condition in smbtorture child startup (This used to be commit 30febde783bcacc111f559473dc15baee66db350) --- source3/torture/torture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index cdf681ec8c..fc63ac341b 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3610,7 +3610,7 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) child_status[i] = getpid(); - while (child_status[i]) msleep(2); + while (child_status[i] && end_timer() < 5) msleep(2); child_status_out[i] = fn(i); _exit(0); -- cgit