Re: [9fans] pprint and exportfs (and others)

2013-04-20 Thread cinap_lenrek
it looks like telnetd doesnt even need any changes. it explicitely opens /dev/cons (which got bound over with the network connection by listen) and dups it to fd 2 for the subshell. tho i havnt tried it yet. -- cinap

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread erik quanstrom
> having errors from listeneres appear on the cpu server console > (or a logfile?) instead in the middle of some unknown protocol > stream makes sense as a default for aux/listen. a logfile would be better. i have a system that gets attacked occasionally, and spamming the console would only make

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread cinap_lenrek
its not just pprint(). stuff like sysfatal() will also write to fd 2... or abort()... having the kernel write to your std error has some practical value imho. having errors from listeneres appear on the cpu server console (or a logfile?) instead in the middle of some unknown protocol stream makes

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread Charles Forsyth
The user is intended to see these messages: that's the point of pprint. The messages refer to a program the user is running. It produces diagnostics from the kernel to the user, and thus correctly uses standard error. On 17 Apr 2013 18:54, wrote: > > there is no kprint in plan 9. neither can one

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread lucio
> there is no kprint in plan 9. neither can one > syslog from the kernel. I was going to be clearer, then got lazy: -lr--r- c 0 lucio lucio 0 Mar 21 20:44 /dev/kprint that's the console, I've never investigated how the kernel writes to it, but it sounds like the right place for diagn

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread erik quanstrom
On Wed Apr 17 13:38:02 EDT 2013, lu...@proxima.alt.za wrote: > > In a few cases, the kernel will use pprint to put a diagnostic on the > > standard error (file descriptor 2). > > What's wrong with kprint (or logging) for this? that's what pprint() does. it prints info about the current (offendin

Re: [9fans] pprint and exportfs (and others)

2013-04-17 Thread lucio
> In a few cases, the kernel will use pprint to put a diagnostic on the > standard error (file descriptor 2). What's wrong with kprint (or logging) for this? ++L

[9fans] pprint and exportfs (and others)

2013-04-17 Thread Charles Forsyth
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 t