Getting a fully-qualified path from a PID
Joe Marcus Clarke
marcus at marcuscom.com
Tue Jul 20 19:47:50 PDT 2004
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
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040720/0950f54f/attachment.bin
More information about the freebsd-hackers
mailing list