plan9fox/sys/src/cmd/aux
cinap_lenrek cbe11fc1c2 aux/listen: do not redirect stderr (fd 2) of the listener to the network connection
Charles Forsyth described the problem below in:

http://9fans.net/archive/2013/04/190

In a few cases, the kernel will use pprint to put a diagnostic on the
standard error (file descriptor 2). One of those is a warning that the
process has used more than 100 file descriptors. That message is possibly
obsolete and could be removed, but there are others, such as notifying an
uncaught trap that are probably helpful to make visible. In any case, as
things stand, a busy exportfs might have many file descriptors open,
provoking the diagnostic. Unfortunately, aux/listen and aux/listen1 connect
file descriptor 2 to the incoming network connection. If the connection's
protocol is not a simple, unstructured, textual one, diagnostics on the
standard error will cause confusion, in particular to devmnt.c if 9p is used.

/rc/bin/service files that start applications that run special protocols
might want to redirect file descriptor 2; alternatively, perhaps aux/listen
shouldn't redirect fd 2 by default: the few commands that do connect the remote
user to shells, or equivalent, including telnetd and sshd could dup 1 to 2
when that was sensible.
2013-04-20 21:42:20 +02:00
..
antiword
flashfs
gps
kbdfs kbdfs: send interrupt note in separate proc to prevent potential deadlock 2012-11-09 17:39:35 +01:00
mnihongo
multi
na
realemu
vga aux/vga: remove debug prints 2013-01-08 02:05:23 +01:00
8prefix.c
9pcon.c
accupoint.c
acidleak.c
apm.c
astarld.c
bflz.c
cddb.c
cdsh.c
clog.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
consolefs.c
conswdir.c
cpuid.c aux/cpuid: xsaveopt 2013-03-17 13:20:03 +01:00
data2s.c
depend.c
disksim.c
getflags.c
icanhasmsi.c
lines.c
lis
listen.c aux/listen: do not redirect stderr (fd 2) of the listener to the network connection 2013-04-20 21:42:20 +02:00
listen1.c aux/listen: do not redirect stderr (fd 2) of the listener to the network connection 2013-04-20 21:42:20 +02:00
mkfile add wpa key setup program aux/wpa 2013-03-09 17:33:58 +01:00
mouse.c
ms2.c
msexceltables.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mswordstrings.c
nfsmount.c
olefs.c
pcmcia.c
portmap.c
rdwr.c
reboot.c
searchfs.c
seek.c
statusbar.c statusbar: fix garbled percentage output 2013-01-27 11:51:31 +01:00
statusmsg.c
stub.c
tablet.c
timesync.c
trampoline.c
unbflz.c
unlock Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
usage.c
wacom.c
wikifmt.c wikifmt: fix trailing _ in heading name reference 2012-11-05 03:16:13 +01:00
wpa.c wpa: fix rsc for wpa2 2013-03-23 22:09:46 +01:00
write.c
zerotrunc.c