Quoting Michael Jennings <mej@xxxxxxxxx>:
If you would like to propose a portable method of obtaining the path
of the invoked binary 100% of the time (i.e., argv[0] and searching
$PATH are OUT), I'd like to see it.
Hmmmm.... You might try with looking where your txt segments are mapped. Not
sure how portable the code would be, and if it would work on *every*
Unix, Unix
look-alike and variant out there. But then, is there such thing as portable
code ;-)
# lsof -d txt
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list