c0086bf202
Just like the old TTY layer, the current MPSAFE TTY layer does not make any attempt to serialize calls of write(). Data is copied into the kernel in 256 (TTY_STACKBUF) byte chunks. If a write() call occurs at the same time, the data may interleave. This is especially likely when the TTY starts blocking, because the output queue reaches the high watermark. I've implemented this by adding a new flag, TTY_BUSY_OUT, which is used to mark a TTY as having a thread stuck in write(). Because I don't want non-blocking processes to be possibly blocked by a sleeping thread, I'm still allowing it to bypass the protection. According to this message, the Linux kernel returns EAGAIN in such cases, but I think that's a little too restrictive: http://kerneltrap.org/index.php?q=mailarchive/linux-kernel/2007/5/2/85418/thread PR: kern/118287 |
||
---|---|---|
.. | ||
ac | ||
accton | ||
acpi | ||
adduser | ||
amd | ||
ancontrol | ||
apm | ||
apmd | ||
arp | ||
asf | ||
audit | ||
auditd | ||
auditreduce | ||
authpf | ||
bluetooth | ||
boot0cfg | ||
boot98cfg | ||
bootparamd | ||
bsnmpd | ||
btxld | ||
burncd | ||
cdcontrol | ||
chkgrp | ||
chown | ||
chroot | ||
ckdist | ||
clear_locks | ||
config | ||
cpucontrol | ||
crashinfo | ||
cron | ||
crunch | ||
ctm | ||
cxgbtool | ||
daemon | ||
dconschat | ||
devinfo | ||
digictl | ||
diskinfo | ||
dnssec-keygen | ||
dnssec-signzone | ||
dumpcis | ||
editmap | ||
edquota | ||
eeprom | ||
extattr | ||
extattrctl | ||
faithd | ||
fdcontrol | ||
fdformat | ||
fdread | ||
fdwrite | ||
fifolog | ||
flowctl | ||
freebsd-update | ||
ftp-proxy | ||
fwcontrol | ||
getfmac | ||
getpmac | ||
gssd | ||
gstat | ||
i2c | ||
ifmcstat | ||
inetd | ||
iostat | ||
ip6addrctl | ||
ipfwpcap | ||
IPXrouted | ||
jail | ||
jexec | ||
jls | ||
kbdcontrol | ||
kbdmap | ||
kernbb | ||
keyserv | ||
kgmon | ||
kgzip | ||
kldxref | ||
lastlogin | ||
lmcconfig | ||
lpr | ||
lptcontrol | ||
mailstats | ||
mailwrapper | ||
makefs | ||
makemap | ||
manctl | ||
memcontrol | ||
mergemaster | ||
mixer | ||
mld6query | ||
mlxcontrol | ||
mount_nwfs | ||
mount_portalfs | ||
mount_smbfs | ||
mountd | ||
moused | ||
mptable | ||
mtest | ||
mtree | ||
named | ||
named-checkconf | ||
named-checkzone | ||
named.reload | ||
ndiscvt | ||
ndp | ||
newsyslog | ||
nfsd | ||
ngctl | ||
nghook | ||
nologin | ||
nscd | ||
ntp | ||
nvram | ||
ofwdump | ||
pciconf | ||
periodic | ||
pkg_install | ||
pmcannotate | ||
pmccontrol | ||
pmcstat | ||
pnpinfo | ||
portsnap | ||
powerd | ||
ppp | ||
pppctl | ||
pppd | ||
pppstats | ||
praliases | ||
praudit | ||
procctl | ||
pstat | ||
pw | ||
pwd_mkdb | ||
quot | ||
quotaon | ||
rarpd | ||
raycontrol | ||
repquota | ||
rip6query | ||
rmt | ||
rndc | ||
rndc-confgen | ||
route6d | ||
rpc.lockd | ||
rpc.statd | ||
rpc.umntall | ||
rpc.yppasswdd | ||
rpc.ypupdated | ||
rpc.ypxfrd | ||
rpcbind | ||
rrenumd | ||
rtadvd | ||
rtprio | ||
rtsold | ||
rwhod | ||
sa | ||
sade | ||
sendmail | ||
setfib | ||
setfmac | ||
setpmac | ||
sicontrol | ||
sliplogin | ||
slstat | ||
smbmsg | ||
snapinfo | ||
spkrtest | ||
spray | ||
sysinstall | ||
syslogd | ||
tcpdchk | ||
tcpdmatch | ||
tcpdrop | ||
tcpdump | ||
timed | ||
traceroute | ||
traceroute6 | ||
trpt | ||
tzsetup | ||
ugidfw | ||
usbconfig | ||
usbdevs | ||
vidcontrol | ||
vipw | ||
watch | ||
watchdogd | ||
wlandebug | ||
wlconfig | ||
wpa | ||
yp_mkdb | ||
ypbind | ||
yppoll | ||
yppush | ||
ypserv | ||
ypset | ||
zic | ||
zzz | ||
Makefile | ||
Makefile.inc |