home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!decwrl!pa.dec.com!decprl!decprl!boyd
- From: boyd@prl.dec.com (Boyd Roberts)
- Subject: Re: cd-ing to a dir using a process, then staying there on exit.
- Message-ID: <1992Aug20.190826.7119@prl.dec.com>
- Sender: news@prl.dec.com (USENET News System)
- Nntp-Posting-Host: prl313.prl.dec.com
- Organization: Digital Equipment Corporation - Paris Research Laboratory
- References: <BtA8CG.ME4@encore.com> <1992Aug20.163507.4449@gateway.novell.com>
- Date: Thu, 20 Aug 1992 19:08:26 GMT
- Lines: 23
-
- If you're going to post any such pretense get the details right:
-
- In article <1992Aug20.163507.4449@gateway.novell.com>, terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert) writes:
- >
- > 5) Get the locked vnode number for the process' cwd from the u struct.
- >
-
- The [igv]node will most probably _not_ be locked, and the u-area
- holds a pointer to it.
-
- > 7) To avoid having to reverse map the parent's cwd to a file name and
- > to avoid dorking the reference count on the vnodes and locking up
- > your file system, swap cwd's between the parent and the child
- > process. Do this by writing the childs vnode number into the
- > parent's u struct, and the parent's into the childs. This is the
- > sneaky bit.
-
- It's a _pointer_ and all of this will break for a variety of reasons.
-
-
- Boyd Roberts boyd@prl.dec.com
-
- ``When the going gets wierd, the weird turn pro...''
-