diff options
author | 2016-08-21 03:26:04 +0000 | |
---|---|---|
committer | 2016-08-21 03:26:04 +0000 | |
commit | d57725b086928227b293d30fc416a5ce74abf55b (patch) | |
tree | 18d4232e758fce3d6ad80544b037a110e203ac5d | |
parent | sync (diff) | |
download | wireguard-openbsd-d57725b086928227b293d30fc416a5ce74abf55b.tar.xz wireguard-openbsd-d57725b086928227b293d30fc416a5ce74abf55b.zip |
Change sleep from crazy backoff to one second of sleep between retries
ok deraadt@
-rw-r--r-- | usr.bin/login/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 48bb2ce450d..9755972b443 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.67 2015/12/26 20:51:35 guenther Exp $ */ +/* $OpenBSD: login.c,v 1.68 2016/08/21 03:26:04 beck Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -540,7 +540,7 @@ failed: badlogin(username); sleepexit(1); } - sleep((u_int)((cnt - backoff) * tries / 2)); + sleep(1); } } |