diff options
author | David Teigland <teigland@redhat.com> | 2010-11-04 15:38:12 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2010-11-04 15:38:12 -0500 |
commit | 5ef1c190d61091af2201929a9633d044385fa694 (patch) | |
tree | 30ea16743e216bafed537bde06b9aa59b5e19f69 | |
parent | 47e1906aaef5a931cedb6d3bff4fd35498cbdaed (diff) | |
download | dct-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.c | 2 | ||||
-rw-r--r-- | dlm/dlm_kill/dlm_lock_loop.c | 2 |
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); |