From owner-freebsd-ports Fri Feb 9 11:11:50 2001 Delivered-To: freebsd-ports@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 6319937B69C; Fri, 9 Feb 2001 11:11:33 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f19JBXK14980; Fri, 9 Feb 2001 11:11:33 -0800 (PST) Date: Fri, 9 Feb 2001 11:11:33 -0800 From: Alfred Perlstein To: green@freebsd.org Cc: ports@freebsd.org Subject: remove openshh dependancy on nanosleep() Message-ID: <20010209111133.J26076@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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