9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] pprint and exportfs (and others)
@ 2013-04-17 16:52 Charles Forsyth
  2013-04-17 17:35 ` lucio
  2013-04-20 19:15 ` cinap_lenrek
  0 siblings, 2 replies; 8+ messages in thread
From: Charles Forsyth @ 2013-04-17 16:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1310 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-04-20 19:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17 16:52 [9fans] pprint and exportfs (and others) Charles Forsyth
2013-04-17 17:35 ` lucio
2013-04-17 17:43   ` erik quanstrom
2013-04-17 17:52     ` lucio
2013-04-17 21:07       ` Charles Forsyth
2013-04-17 21:55         ` cinap_lenrek
2013-04-18  2:20           ` erik quanstrom
2013-04-20 19:15 ` cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).