HomePhabricator

The assumption that /proc/self/exe always exists is incorrect.

Description

The assumption that /proc/self/exe always exists is incorrect.
For example, under a Linux chroot, /proc/ might not be mounted.
Therefor, we test if this file exist. If it is the case, use it (the current
behavior). Otherwise, we fall back to the detection used by *BSD.

The issue has been reported initially on the Debian bug tracker:
http://bugs.debian.org/674588

Details

Committed
sylvestreSep 26 2012, 1:30 AM
Parents
rL164675: Add SARX/SHRX/SHLX code generation support
Branches
Unknown
Tags
Unknown