aboutsummaryrefslogtreecommitdiffstats
path: root/security/openssh/files/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/openssh/files/rcmd.c')
-rw-r--r--security/openssh/files/rcmd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/security/openssh/files/rcmd.c b/security/openssh/files/rcmd.c
index d1fbbee78c7a..2378219180ce 100644
--- a/security/openssh/files/rcmd.c
+++ b/security/openssh/files/rcmd.c
@@ -32,7 +32,7 @@
*
* ported from:
* FreeBSD: src/lib/libc/net/rcmd.c,v 1.22 2000/02/01 15:55:54 shin Exp
- * $FreeBSD: /tmp/pcvs/ports/security/openssh/files/Attic/rcmd.c,v 1.2 2000-04-17 22:20:24 sumikawa Exp $
+ * $FreeBSD: /tmp/pcvs/ports/security/openssh/files/Attic/rcmd.c,v 1.3 2001-02-09 22:37:50 kris Exp $
*/
#if defined(LIBC_SCCS) && !defined(lint)
@@ -172,11 +172,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
continue;
}
if (refused && timo <= 16) {
- struct timespec time_to_sleep, time_remaining;
-
- time_to_sleep.tv_sec = timo;
- time_to_sleep.tv_nsec = 0;
- (void)_nanosleep(&time_to_sleep, &time_remaining);
+ sleep(timo);
timo *= 2;
ai = res;