From 24df38dbc6648261f86adcffd664ffc43f8f3346 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Mon, 23 Feb 2004 02:54:03 +0000 Subject: Janitor for tpot...bugzilla #1098, msleep already exists on aix (This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba) --- source3/torture/torture.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 8c4d994b40..57ba24e63e 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -389,7 +389,7 @@ static BOOL rw_torture3(struct cli_state *c, char *lockfname) { fnum = cli_open(c, lockfname, O_RDONLY, DENY_NONE); - msleep(10); + smb_msleep(10); } if (fnum == -1) { printf("second open read-only of %s failed (%s)\n", @@ -4475,12 +4475,12 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) printf("pid %d failed to start\n", (int)getpid()); _exit(1); } - msleep(10); + smb_msleep(10); } child_status[i] = getpid(); - while (child_status[i] && end_timer() < 5) msleep(2); + while (child_status[i] && end_timer() < 5) smb_msleep(2); child_status_out[i] = fn(i); _exit(0); @@ -4493,7 +4493,7 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) if (child_status[i]) synccount++; } if (synccount == nprocs) break; - msleep(10); + smb_msleep(10); } while (end_timer() < 30); if (synccount != nprocs) { -- cgit