Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Sep 1997 17:45:28 -0700 (PDT)
From:      Vincent Poy <vince@venus.GAIANET.NET>
To:        Paul Traina <pst@shockwave.com>
Cc:        Peter Wemm <peter@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/net res_send.c 
Message-ID:  <Pine.BSF.3.96.970914174453.353D-100000@venus.GAIANET.NET>
In-Reply-To: <199709150032.RAA12560@precipice.shockwave.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 14 Sep 1997, Paul Traina wrote:

	This was the one I build the new libc under without making a new
kernel.  Everything broke afterwards. 


Cheers,
Vince - vince@MCESTATE.COM - vince@GAIANET.NET           ________   __ ____ 
Unix Networking Operations - FreeBSD-Real Unix for Free / / / / |  / |[__  ]
GaiaNet Corporation - M & C Estate                     / / / /  | /  | __] ]  
Beverly Hills, California USA 90210                   / / / / / |/ / | __] ]
HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[____]

> Thanks, this was a good thing to do (tm).
> 
> Overkill away. :-)
> 
>   From: Peter Wemm <peter@FreeBSD.ORG>
>   Subject: cvs commit: src/lib/libc/net res_send.c
>   peter       1997/09/14 02:44:35 PDT
>   
>     Modified files:
>       lib/libc/net         res_send.c 
>     Log:
>     Call poll(2) from within the resolver but adapt to older kernels without it
>     if necessary.  This removes the need to malloc large fd_set's for selecting
>     on high fd's (larger than FD_SETSIZE at libc compile time).
>     
>     The syscall adaptive stuff only happens on the very first call.  SIGSYS
>     is masked, and if the call to poll fails with ENOSYS, then we use select
>     for the life of the program.  If poll does not fail with ENOSYS, then we
>     always use poll and skip the once-off signal masking gunk.
>     
>     This may be overkill, but it saved my neck a few times while working on
>     multiple different sets of kernel sources, some with poll, some without.
>     
>     Revision  Changes    Path
>     1.19      +68 -26    src/lib/libc/net/res_send.c
>   
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970914174453.353D-100000>