1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00
freebsd/etc
Doug Barton a6f9d19c1e In wait_for_pids(), pwait(1) can return when the process exits, but
still exists as a zombie. The 'kill -0' test in this function can
therefore return true even if the process isn't actually running.
This could lead to wait_for_pids() printing an endless string of the
pid number until the zombie finally exits.

Solve this problem by moving the sleep up to after the 'kill -0' test, but
only after we've run through the function once already. In the common case
(only one pid in the list) this will always do the right thing. On the rare
occasion that there is more than one pid in the list this will sleep 1
second per zombie process which will allow that process, and any other
in the list a chance to exit.

While I'm here, local'ize the variables that this function uses.
2010-04-06 05:20:46 +00:00
..
bluetooth
defaults Add .snap to daily_clean_tmps_ignore; /tmp/.snap ist not supposed to 2010-03-23 06:19:44 +00:00
devd adds a hardware specific configuration file for uath(4). 2010-01-19 01:33:56 +00:00
etc.amd64 Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.arm Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.i386 Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.ia64 Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.mips Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.pc98 Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.powerpc Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
etc.sparc64 Remove pseudo-terminals from ttys(5). 2010-01-27 11:54:42 +00:00
gss
mail
mtree usr/share/examples/bc no longer exists. 2010-02-27 17:31:00 +00:00
namedb Update the example named.conf file to answer locally for the newly 2010-01-18 18:37:47 +00:00
pam.d tabify 2009-10-05 09:28:54 +00:00
periodic Let rc and periodic infrastructure and newsyslog use the utmpx files. 2010-01-13 19:07:48 +00:00
ppp Remove COMPILATIONDATE from the default section. This string is no longer 2010-02-16 01:07:06 +00:00
rc.d Use an unique directory name instead of hardcoded /tmp/.diskless. 2010-03-13 12:02:44 +00:00
root Switch the default terminal emulation style to xterm for most platforms. 2009-11-13 05:54:55 +00:00
sendmail Minor changes to force commit these files so new freebsd*.cf files are 2010-01-26 04:44:12 +00:00
amd.map
apmd.conf
auth.conf
crontab
csh.cshrc
csh.login
csh.logout
ddb.conf
devd.conf
devfs.conf
dhclient.conf
disktab
fbtab
freebsd-update.conf
ftpusers
gettytab Partially revert the change to the gettytab made in r198214. 2009-10-19 11:10:44 +00:00
group
hosts
hosts.allow
hosts.equiv
hosts.lpd
inetd.conf Add -k to the recommended fingerd(8) command line. 2010-04-01 13:13:09 +00:00
libalias.conf
login.access
login.conf
mac.conf
Makefile Slightly improve my previous commit. 2010-03-19 15:53:02 +00:00
man.alias
master.passwd
minfree
motd
netconfig
netstart
network.subr Add rc.d script for the rtsold(8) daemon. 2010-02-03 16:18:42 +00:00
networks
newsyslog.conf Let rc and periodic infrastructure and newsyslog use the utmpx files. 2010-01-13 19:07:48 +00:00
nls.alias
nscd.conf
nsmb.conf
nsswitch.conf
ntp.conf
opieaccess
pccard_ether
pf.os
phones
portsnap.conf
printcap
profile
protocols
rc
rc.bsdextended
rc.firewall Remove the rules using 'me6'. Now, 'me' matches both any IPv6 address 2010-01-17 08:41:07 +00:00
rc.initdiskless
rc.resume
rc.sendmail
rc.shutdown
rc.subr In wait_for_pids(), pwait(1) can return when the process exits, but 2010-04-06 05:20:46 +00:00
rc.suspend
regdomain.xml
remote
rpc
services Add sane-port (Scanner Access Now Easy) as port 6566. 2010-02-06 21:22:01 +00:00
shells
snmpd.config
sysctl.conf
syslog.conf
termcap.small Improve the contents of termcap.small. 2010-03-07 08:54:06 +00:00