9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lyndon Nerenberg <lyndon@orthanc.ca>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed
Date: Tue, 28 Oct 2008 14:17:04 -0700	[thread overview]
Message-ID: <alpine.WNT.2.00.0810281357370.6188@gollum> (raw)
In-Reply-To: <a560a5d00810280814u11fc0623uafb9e1c504eb0c02@mail.gmail.com>

> This saving&restoring seems flawed to me due to possible race-conditions...
> I'd expect each shell had its own copy of /dev/wdir... But I may be
> easily wrong...

When a rc forks a subshell the child shares the namespace with the parent.
If you want the child rc to divorce its namespace from the parent, have it
issue 'rfork n'.

There is no race condition; this is documented behaviour.

You need to (re-)read the namespaces paper in /sys/doc/names.ps.

--lyndon



  parent reply	other threads:[~2008-10-28 21:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28  9:42 Rudolf Sykora
2008-10-28 10:04 ` Steve Simon
2008-10-28 15:14   ` Rudolf Sykora
2008-10-28 15:30     ` Rob Pike
2008-10-28 16:27       ` Rudolf Sykora
2008-10-28 17:16         ` andrey mirtchovski
2008-10-28 17:26           ` andrey mirtchovski
2008-10-28 17:21         ` Russ Cox
2008-10-28 21:17     ` Lyndon Nerenberg [this message]
2008-10-28 21:41       ` Rudolf Sykora
2008-10-28 22:24         ` Lyndon Nerenberg
2008-10-28 10:54 ` matt
2008-10-28 15:15   ` Rudolf Sykora

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=alpine.WNT.2.00.0810281357370.6188@gollum \
    --to=lyndon@orthanc.ca \
    --cc=9fans@9fans.net \
    /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).