Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 11:11:33 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        green@freebsd.org
Cc:        ports@freebsd.org
Subject:   remove openshh dependancy on nanosleep()
Message-ID:  <20010209111133.J26076@fw.wintelcom.net>

next in thread | raw e-mail | index | archive | help
nanosleep doesn't exist in 2.2.x
This code _should_ be equivelant, I'd like to apply this patch
asap.

Index: rcmd.c
===================================================================
RCS file: /home/ncvs/ports/security/openssh/files/rcmd.c,v
retrieving revision 1.2
diff -u -u -r1.2 rcmd.c
--- rcmd.c	2000/04/17 22:20:24	1.2
+++ rcmd.c	2001/02/09 19:13:48
@@ -172,11 +172,7 @@
 			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;

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010209111133.J26076>