Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 12:34:54 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        mi@aldan.algebra.com, stable@FreeBSD.ORG
Subject:   Re: sketch seg-faults at start-up -- confirmation
Message-ID:  <199908211634.MAA24428@pcnet1.pcnet.com>

next in thread | raw e-mail | index | archive | help
> Not yet :(, I guess....

Hmm, what version of uthread_select.c do you have?

Here's another fix for uthread_select.c, but it shouldn't matter
as long as sketch is passing in valid timevals...

Index: uthread_select.c
===================================================================
RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_select.c,v
retrieving revision 1.5.2.4
diff -u -r1.5.2.4 uthread_select.c
--- uthread_select.c	1999/08/20 21:17:45	1.5.2.4
+++ uthread_select.c	1999/08/21 16:29:08
@@ -59,8 +59,10 @@
 	/* Check if a timeout was specified: */
 	if (timeout) {
 		if (timeout->tv_sec < 0 ||
-			timeout->tv_usec < 0 || timeout->tv_usec >= 1000000)
-			return (EINVAL); 
+			timeout->tv_usec < 0 || timeout->tv_usec >= 1000000) {
+			errno = EINVAL;
+			return (-1);
+		}
 
 		/* Convert the timeval to a timespec: */
 		TIMEVAL_TO_TIMESPEC(timeout, &ts);

Dan Eischen
eischen@vigrid.com


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




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