> 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 via email to