9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "roger peppe" <rogpeppe@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] query on styxlisten (Inferno) and mount (Linux)?
Date: Fri,  9 Nov 2007 12:54:32 +0000	[thread overview]
Message-ID: <df49a7370711090454q40cfadecqd1e515695ea134e9@mail.gmail.com> (raw)
In-Reply-To: <8C876307-637F-443A-BB74-F54D3A7E6157@utopian.net>

> This exports the entire Inferno root. Styxlisten will start a
> listener and return, so I don't think you need the "&". 564 is the
> usual 9p port.

it might be worth noting that when the command run by
styxlisten exits, styxlisten kills the listener, assuming the
command is no longer around to take calls.

FWIW, for a simple export, i usually do the equivalent:

     listen addr {export /&}

in this case the & is necessary, as listen doesn't listen
for any more calls while the command is running.
this is actually useful behaviour - when i want to mount
the namespace of a machine i can't run a listener on
(e.g. because some firewall blocks incoming calls)
i can do:

    listen -s addr {mount -A /fd/0 /n/remote; raise break}

and on the exporting machine:

    dial addr {export /&}

it's quite flexible.


  reply	other threads:[~2007-11-09 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09  0:18 Joshua Wood
2007-11-09 12:54 ` roger peppe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-08 22:43 ISHWAR RATTAN

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=df49a7370711090454q40cfadecqd1e515695ea134e9@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --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).