9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rx - wot no stderr?
Date: Fri, 19 Jan 2007 14:35:48 +0000	[thread overview]
Message-ID: <c6fa233e1ab2b2ee64026ecc77d26e6a@quintile.net> (raw)
In-Reply-To: <458a902e5883e2f125866013dbdd9fdf@coraid.com>

> rexexec(8) doesn't have anything to do with supporting stderr.
> listen does this work.  (assuming a p9 system not using ssh to connect.)
> /sys/src/cmd/aux/listen.c:/^newcall dup(2)'s all three descriptors from
> the incoming call.  since it's a single Channel in the kernel, there's no way
> to differentiate writes on fd 0, 1 or 2.  if you want that, you need
> to mux and demux the filedescriptors onto some protocol.

Agreed, however the old BSD rexec protocol has hooks for a seccond
socket connection called back from the server to support stderr.
It is an optional enhancement and though plan9's rx(1) does support BSD
compatibility, doesn't support this feature; and yes it would open the
same old wounds that ftp's passive mode was designed to heal :-)

My question (perhaps badly phrased) was more about the decision not to
support stderr, why was it done? In a pure plan9 enviroment we already have
a protocol to mux and demux file descriptors as demonstarted in cpu(1).

On a similar topic a file like /dev/cpunote could forwarward notes to
the remote process to ensure it dies when told to rather than assuming
it will see an EOF on its input one day.

Was it just too much hassle for too little reward or am I missing someting,
is there a good reason why this just cannot work.

-Steve


  reply	other threads:[~2007-01-19 14:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 17:14 Steve Simon
2007-01-19 12:32 ` Gorka guardiola
2007-01-19 13:07   ` erik quanstrom
2007-01-19 14:35     ` Steve Simon [this message]
2007-01-19 22:17       ` erik quanstrom
2007-01-20  1:15         ` Steve Simon
2007-01-20  1:34           ` erik quanstrom
2007-01-24 21:03           ` rog
2007-01-21  7:06   ` ron minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c6fa233e1ab2b2ee64026ecc77d26e6a@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).