Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2009 15:20:03 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-amd64@FreeBSD.org
Subject:   Re: amd64/141130: commit references a PR
Message-ID:  <200912031520.nB3FK3Kq076840@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/141130; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/141130: commit references a PR
Date: Thu,  3 Dec 2009 15:14:45 +0000 (UTC)

 Author: jhb
 Date: Thu Dec  3 15:14:30 2009
 New Revision: 200061
 URL: http://svn.freebsd.org/changeset/base/200061
 
 Log:
   The fd_mask type is an unsigned long, not an int, so treat the mask as a
   long instead of an int when examining the results of select() to look for
   RPC requests.  Previously this routine would ignore RPC requests to sockets
   whose file descriptor mod 64 was greater than 31 on a 64-bit platform.
   
   PR:		amd64/141130
   Submitted by:	liujb of array networks
   MFC after:	3 days
 
 Modified:
   head/lib/libc/rpc/svc.c
 
 Modified: head/lib/libc/rpc/svc.c
 ==============================================================================
 --- head/lib/libc/rpc/svc.c	Thu Dec  3 14:59:42 2009	(r200060)
 +++ head/lib/libc/rpc/svc.c	Thu Dec  3 15:14:30 2009	(r200061)
 @@ -627,8 +627,8 @@ svc_getreqset(readfds)
  
  	maskp = readfds->fds_bits;
  	for (sock = 0; sock < FD_SETSIZE; sock += NFDBITS) {
 -	    for (mask = *maskp++; (bit = ffs(mask)) != 0;
 -		mask ^= (1 << (bit - 1))) {
 +	    for (mask = *maskp++; (bit = ffsl(mask)) != 0;
 +		mask ^= (1ul << (bit - 1))) {
  		/* sock has input waiting */
  		fd = sock + bit - 1;
  		svc_getreq_common(fd);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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