Re: [PATCH] to get gnome-terminal to save/restore cwd.



On Sun, Aug 13, 2000 at 05:12:01PM -0400, Christopher T. Lansdown wrote:
> > 	b) for providing a linux-only patch.  i meant to mention this, and i
> > 	   hope someone can rectify it.  essentially i get the child's
> > 	   pid and use that to get the child's cwd - via /proc/<pid>/cwd.
> is getcwd() really that non-portable?  From the getcwd manpage is claims
> that it conforms to POSIX.1, so I'd assume that it's not linux-specific. 
> Was there a reason not to use that?

yes.  hint: getcwd() doesn't take a pid argument.

kevin

-- 
kevin@suberic.net        moo
fork()'ed on 37058400                                                    moo
meatspace place: home    http://suberic.net/~kevin/  yank? www.votenader.com
>>protect privacy: www.gnupg.org or www.pgp.com.  encrypted mail preferred<<

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]