summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-28 02:42:25 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-28 02:42:25 +0000
commit30febde783bcacc111f559473dc15baee66db350 (patch)
treed0bbe3d63ab59ca8cdf501839e6f338c05731617 /source
parent14e2beca9b8fa1c8d893013f52f42b2721a82758 (diff)
downloadsamba-30febde783bcacc111f559473dc15baee66db350.tar.gz
samba-30febde783bcacc111f559473dc15baee66db350.tar.xz
samba-30febde783bcacc111f559473dc15baee66db350.zip
a dodgy fix for a dodgy race condition in smbtorture child startup
Diffstat (limited to 'source')
-rw-r--r--source/torture/torture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c
index cdf681ec8c4..fc63ac341b2 100644
--- a/source/torture/torture.c
+++ b/source/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);