Lines 401-428
int main(int argc, char *argv[]) {
Link Here
|
401 |
pa_log_set_level(PA_LOG_NOTICE); |
401 |
pa_log_set_level(PA_LOG_NOTICE); |
402 |
pa_log_set_flags(PA_LOG_COLORS|PA_LOG_PRINT_FILE|PA_LOG_PRINT_LEVEL, PA_LOG_RESET); |
402 |
pa_log_set_flags(PA_LOG_COLORS|PA_LOG_PRINT_FILE|PA_LOG_PRINT_LEVEL, PA_LOG_RESET); |
403 |
|
403 |
|
404 |
#if defined(__linux__) && defined(__OPTIMIZE__) |
|
|
405 |
/* |
406 |
Disable lazy relocations to make usage of external libraries |
407 |
more deterministic for our RT threads. We abuse __OPTIMIZE__ as |
408 |
a check whether we are a debug build or not. |
409 |
*/ |
410 |
|
411 |
if (!getenv("LD_BIND_NOW")) { |
412 |
char *rp; |
413 |
|
414 |
/* We have to execute ourselves, because the libc caches the |
415 |
* value of $LD_BIND_NOW on initialization. */ |
416 |
|
417 |
pa_set_env("LD_BIND_NOW", "1"); |
418 |
|
419 |
if ((rp = pa_readlink("/proc/self/exe"))) |
420 |
pa_assert_se(execv(rp, argv) == 0); |
421 |
else |
422 |
pa_log_warn("Couldn't read /proc/self/exe, cannot self execute. Running in a chroot()?"); |
423 |
} |
424 |
#endif |
425 |
|
426 |
if ((e = getenv("PULSE_PASSED_FD"))) { |
404 |
if ((e = getenv("PULSE_PASSED_FD"))) { |
427 |
passed_fd = atoi(e); |
405 |
passed_fd = atoi(e); |
428 |
|
406 |
|
429 |
- |
|
|