> 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

Reply via email to