9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] name space question
@ 2005-09-29 18:04 ISHWAR RATTAN
  2005-09-29 18:12 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: ISHWAR RATTAN @ 2005-09-29 18:04 UTC (permalink / raw)
  To: 9fans


Say a process is created with rofrk flag RFCNAMEG
-- clean name space. A little confusion here: does
it mean that search path defaults (before rfork) are
now lost. If so, I would like to see an example code
for building new name space in the forked process.

-ishwar



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] name space question
  2005-09-29 18:04 [9fans] name space question ISHWAR RATTAN
@ 2005-09-29 18:12 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2005-09-29 18:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Say a process is created with rofrk flag RFCNAMEG
> -- clean name space. A little confusion here: does
> it mean that search path defaults (before rfork) are
> now lost.

The search path (contained in the environment)
is left alone, but there is no longer a /bin!

> If so, I would like to see an example code
> for building new name space in the forked process.

See /sys/src/libauth/newns.c.  The # paths are still available
and are used to get back off the ground.

Russ


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-29 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 18:04 [9fans] name space question ISHWAR RATTAN
2005-09-29 18:12 ` Russ Cox

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).