From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 17 Apr 2013 17:52:33 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e010d8574f1cfd004da914f96 Subject: [9fans] pprint and exportfs (and others) Topicbox-Message-UUID: 42d89ab4-ead8-11e9-9d60-3106f5b1d025 --089e010d8574f1cfd004da914f96 Content-Type: text/plain; charset=UTF-8 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. --089e010d8574f1cfd004da914f96 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In a few cases, the kernel will use pprint to put a diagno= stic 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 other= s, such as
notifying an uncaught trap that are probably hel= pful 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/list= en1 connect file
descriptor 2 to the incoming network conne= ction. If the connection's protocol is
not a simple, un= structured, 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 applic= ations that run special protocols might want to
redirect fi= le descriptor 2; alternatively, perhaps aux/listen shouldn't redirect f= d 2 by
default: the few commands that do connect the remote user to she= lls, or equivalent, including
telnetd and sshd could dup 1 = to 2 when that was sensible.
--089e010d8574f1cfd004da914f96--