Subject: Re: /proc/${pid}/exe not working
To: None <>
From: Antti Kantee <>
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 <>                     Of course he runs NetBSD                
    "la qualité la plus indispensable du cuisinier est l'exactitude"