summaryrefslogtreecommitdiffstats
path: root/etc/etc.amd64/rc.amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-14 09:44:34 +0000
committerpeter <peter@FreeBSD.org>1997-09-14 09:44:34 +0000
commitef7710b20181f03b3f6a27f56769d39b84d04958 (patch)
tree4023d7da61afd830355d7bbe1b6e17e423100842 /etc/etc.amd64/rc.amd64
parent7f77a9386baac6ec9e2db5c44bff263b9a75732f (diff)
downloadFreeBSD-src-ef7710b20181f03b3f6a27f56769d39b84d04958.zip
FreeBSD-src-ef7710b20181f03b3f6a27f56769d39b84d04958.tar.gz
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.
Diffstat (limited to 'etc/etc.amd64/rc.amd64')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud