Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting a fully-qualified path from a PID

0 views
Skip to first unread message

mar...@marcuscom.com

unread,
Jul 21, 2004, 7:44:57 AM7/21/04
to

--=-fHBrVFSMzkSdd9YbK1eN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

What is the canonical way for a userland application to get the
fully-qualified path of an executable from its running PID? I know I
can do a readlink(2) on /proc/pid/file, but procfs is deprecated on 5.X,
correct? Is there a more appropriate way to do this? Thanks.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-fHBrVFSMzkSdd9YbK1eN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBA/dlSb2iPiv4Uz4cRAoHlAJ4/E3z6LJnf0fWUR5HzA65nZ06OGACfS5H7
uZKxyebTgXDrF14bp/ObULw=
=lxbT
-----END PGP SIGNATURE-----

--=-fHBrVFSMzkSdd9YbK1eN--

0 new messages