Subject: Re: /proc/${pid}/exe not working
To: None <current-users@netbsd.org>
From: Antti Kantee <pooka@cs.hut.fi>
List: current-users
Date: 02/25/2007 17:39:29
On Sun Feb 25 2007 at 16:16:58 +0200, Alan Barrett 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.
Is that useful? What do applications expect?
--
Antti Kantee <pooka@iki.fi> Of course he runs NetBSD
http://www.iki.fi/pooka/ http://www.NetBSD.org/
"la qualité la plus indispensable du cuisinier est l'exactitude"