mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
allow pa to be run in a chroot() environment tht lacks /proc
This commit is contained in:
parent
c1892f29de
commit
c9c63c295f
1 changed files with 5 additions and 2 deletions
|
|
@ -369,8 +369,11 @@ int main(int argc, char *argv[]) {
|
|||
* value of $LD_BIND_NOW on initialization. */
|
||||
|
||||
pa_set_env("LD_BIND_NOW", "1");
|
||||
pa_assert_se(rp = pa_readlink("/proc/self/exe"));
|
||||
pa_assert_se(execv(rp, argv) == 0);
|
||||
|
||||
if ((rp = pa_readlink("/proc/self/exe")))
|
||||
pa_assert_se(execv(rp, argv) == 0);
|
||||
else
|
||||
pa_log_warn("Couldn't read /proc/self/exe, cannot self execute. Running in a chroot()?");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue