freebsd-skq/usr.sbin
Rick Macklem 6924e68e11 Fix the nfs related daemons so that they don't intermittently
fail with "bind: address already in use". This problem was reported
to the freebsd-stable@ mailing list on Feb. 19 under the subject
heading "statd/lockd startup failure" by george+freebsd at m5p dot com.
The problem is that the first combination of {udp,tcp X ipv4,ipv6}
would select a port# dynamically, but one of the other three combinations
would have that port# already in use. The patch is somewhat involved
because it was requested by dougb@ that the four combinations use the
same port# wherever possible. The patch splits the create_service()
function into two functions. The first goes as far as bind(2) in a
loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port#
for all four cases. If these attempts fail, the last attempt allows
the 4 cases to use different port #s. After this function has succeeded,
the second function, called complete_service(), does the rest of what
create_service() did.
The three daemons mountd, rpc.lockd and rpc.statd all have a
create_service() function that is patched in a similar way. However,
create_service() has non-trivial differences for the three daemons
that made it impractical to share the same functions between them.

Reviewed by:	jhb
MFC after:	2 weeks
2011-06-02 20:15:32 +00:00
..
ac
accton
acpi
adduser
amd
ancontrol
apm
apmd
arp
asf
audit
auditd
auditreduce
authpf
bluetooth
boot0cfg
boot98cfg
bootparamd
bsdinstall Write the multi step netconfig to a temporary file and only move that 2011-06-02 14:25:27 +00:00
bsnmpd [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
btxld
burncd
cdcontrol
chkgrp
chown
chroot
ckdist
clear_locks
config
cpucontrol
crashinfo
cron
crunch
ctm
cxgbtool
daemon
dconschat
devinfo
digictl
diskinfo
dnssec-dsfromkey
dnssec-keyfromlabel
dnssec-keygen
dnssec-signzone
dumpcis
editmap
edquota
eeprom
extattr
extattrctl
faithd
fdcontrol
fdformat
fdread
fdwrite
fifolog
flowctl
freebsd-update
ftp-proxy
fwcontrol
getfmac
getpmac
gpioctl Bump the date of the man page to the date of the actual commit. 2011-05-25 21:04:11 +00:00
gssd
gstat
i2c
ifmcstat Fix manual section number for netstat(1). 2011-05-17 14:46:28 +00:00
inetd
iostat
ip6addrctl
ipfwpcap
IPXrouted
jail Check for IPv4 or IPv6 to be available by the kernel to not 2011-05-29 21:03:40 +00:00
jexec
jls Check for IPv4 or IPv6 to be available by the kernel to not 2011-05-29 21:03:40 +00:00
kbdcontrol
kbdmap Don't try to close the stream if fopen(3) fails. 2011-06-01 15:48:43 +00:00
keyserv
kgmon
kgzip
kldxref
lastlogin
lmcconfig
lpr
lptcontrol
mailstats
mailwrapper
makefs Add analogs to the -chrp-boot and -prep-boot options to mkisofs. 2011-05-22 19:56:14 +00:00
makemap
manctl
memcontrol
mergemaster
mfiutil There are a couple of structs in mfireg.h with members named 'class'. 2011-06-02 00:43:16 +00:00
mixer
mld6query
mlxcontrol
mount_nwfs
mount_portalfs
mount_smbfs
mountd Fix the nfs related daemons so that they don't intermittently 2011-06-02 19:33:33 +00:00
moused
mptable
mptutil
mtest
mtree
named
named-checkconf
named-checkzone
named.reload
ndiscvt
ndp
newsyslog
nfscbd
nfsd Fix the nfsv4 man page to reflect the changes related to 2011-05-15 22:46:45 +00:00
nfsdumpstate
nfsrevoke
nfsuserd
ngctl
nghook
nologin
nscd
ntp
nvram
ofwdump
pc-sysinstall Start teaching pc-sysinstall about IPv6. 2011-05-31 15:02:30 +00:00
pciconf
periodic
pkg_install Backout libinstall.a -> libpkg commit. 2011-05-17 19:11:47 +00:00
pmcannotate
pmccontrol
pmcstat
pnpinfo
portsnap
powerd
ppp
pppctl
praliases
praudit
procctl
pstat
pw
pwd_mkdb
quot
quotaon
rarpd
repquota
rip6query
rmt
rndc
rndc-confgen
route6d
rpc.lockd Fix the nfs related daemons so that they don't intermittently 2011-06-02 19:49:47 +00:00
rpc.statd Fix the nfs related daemons so that they don't intermittently 2011-06-02 20:15:32 +00:00
rpc.umntall
rpc.yppasswdd
rpc.ypupdated
rpc.ypxfrd
rpcbind
rrenumd
rtadvd
rtprio
rtsold
rwhod
sa
sade
sendmail
service
services_mkdb
setfib
setfmac
setpmac
sicontrol
smbmsg
snapinfo
spkrtest
spray
sysinstall
syslogd
tcpdchk
tcpdmatch
tcpdrop
tcpdump
timed
traceroute
traceroute6
trpt
tzsetup - add missing options and arguments to program's usage() 2011-05-20 17:35:10 +00:00
uathload
ugidfw
uhsoctl
usbconfig
usbdump Minor wording adjustments to usbdump(8). 2011-05-31 07:13:07 +00:00
utxrm
vidcontrol
vipw
wake
watch
watchdogd
wlandebug
wlconfig
wpa
yp_mkdb
ypbind
yppoll
yppush
ypserv
ypset
zic
zzz
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.mips
Makefile.powerpc
Makefile.sparc64