summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-02-20 22:42:39 +0000
committerTim Potter <tpot@samba.org>2004-02-20 22:42:39 +0000
commit9138aa18eb66d2c54cd0736c5e25800868c274f5 (patch)
tree7e149330c285b88f0e6f6b8d603cfd27983d06f9 /source3/torture/torture.c
parentdb3d07c2f5c0764bbf55c0a11a85ae2e52dc481f (diff)
downloadsamba-9138aa18eb66d2c54cd0736c5e25800868c274f5.tar.gz
samba-9138aa18eb66d2c54cd0736c5e25800868c274f5.tar.bz2
samba-9138aa18eb66d2c54cd0736c5e25800868c274f5.zip
AIX has already has a function called msleep(). Bugzilla #1098.
(This used to be commit 90ae3667448be9b3445f401bcd9d7e3eba374215)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 2e6bc49d55..9d0a6bb79e 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",
@@ -4464,12 +4464,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);
@@ -4482,7 +4482,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) {