From: Juho S. <js...@ik...> - 2005-08-29 13:58:07
|
On Mon, Aug 29, 2005 at 03:29:15PM +0200, Florian Weimer wrote: > * Juho Snellman: > > > This has the downside of not helping (though not harming, either) if > > /proc is not mounted. I don't think there's any other reliable method > > for finding out the path of the current executable. > > I think this causes Lisp processes to show up as "exe" in tools like > ps and top. Damn. I'd only thought of checking ps (which shows the correct name on my systems), not top. This shouldn't be a problem, since /proc/self/exe is implemented as a symlink. Just follow the link first, then execute. -- Juho Snellman |