Subject: Re: /proc/${pid}/exe not working
To: None <current-users@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 02/25/2007 16:16:58
On Sun, 25 Feb 2007, Antti Kantee wrote:
> > In this special case, we could possibly use proc.p_comm for the basename,
> > and do the getcwd_common() walk for the dirname.
> 
> The problem is locating the directory to start the getcwd walk from.

Oh, I see.  Then what about just returning proc.p_comm, as a dangling
symlink, in cases where we can't do better.

--apb (Alan Barrett)