mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
a dodgy fix for a dodgy race condition in smbtorture child startup
This commit is contained in:
parent
14e2beca9b
commit
30febde783
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user