summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2010-11-04 15:38:12 -0500
committerDavid Teigland <teigland@redhat.com>2010-11-04 15:38:12 -0500
commit5ef1c190d61091af2201929a9633d044385fa694 (patch)
tree30ea16743e216bafed537bde06b9aa59b5e19f69
parent47e1906aaef5a931cedb6d3bff4fd35498cbdaed (diff)
downloaddct-stuff-5ef1c190d61091af2201929a9633d044385fa694.tar.gz
dct-stuff-5ef1c190d61091af2201929a9633d044385fa694.tar.xz
dct-stuff-5ef1c190d61091af2201929a9633d044385fa694.zip
dlm_kill: fix sleeps
Signed-off-by: David Teigland <teigland@redhat.com>
-rw-r--r--dlm/dlm_kill/dlm_lock_alt.c2
-rw-r--r--dlm/dlm_kill/dlm_lock_loop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/dlm/dlm_kill/dlm_lock_alt.c b/dlm/dlm_kill/dlm_lock_alt.c
index a757c6c..b7e1f9c 100644
--- a/dlm/dlm_kill/dlm_lock_alt.c
+++ b/dlm/dlm_kill/dlm_lock_alt.c
@@ -282,7 +282,7 @@ int main(int argc, char *argv[])
/* sleep random number of seconds */
n = rand_int(0, 4);
printf("alt sleep %d\n", n);
- sleep(rand_int(0, 10));
+ sleep(n);
/* kill child */
printf("alt kill pid %d\n", pid);
diff --git a/dlm/dlm_kill/dlm_lock_loop.c b/dlm/dlm_kill/dlm_lock_loop.c
index 5604790..7818c94 100644
--- a/dlm/dlm_kill/dlm_lock_loop.c
+++ b/dlm/dlm_kill/dlm_lock_loop.c
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
/* sleep random number of seconds */
n = rand_int(0, 4);
printf("loop sleep %d\n", n);
- sleep(rand_int(0, 10));
+ sleep(n);
/* kill child */
printf("loop kill pid %d\n", pid);