aboutsummaryrefslogtreecommitdiff
path: root/src/exec.c
Commit message (Collapse)AuthorAgeFilesLines
* implement alternative way to get memusage using wait4wait4_rusageFlorian Fischer2019-08-151-36/+0
| | | | | | run now forks the benchmark command instead of simply calling exec. Ressource usage of the benchmark is retrieved with a call to wait4. But the reported value ru_maxrss differs from values in /proc/<pid>/status.
* improve execFlorian Fischer2019-08-121-2/+6
| | | | | fix usage print message if exec failed and exit with exit code 1
* use LD_LIBRARY_PATH for glibc instead of calling its loaderFlorian Fischer2019-08-121-0/+32
Calling the loader fails on non ELF executables. Exec, formerly run_cmd, now takes two options: -l LD_LIBRARY_PATH, -p LD_PRELOAD. -p sets LD_PRELOAD and -l LD_LIBRARY_PATH before executing the rest of argv. glibc no longer uses cmd_prefix in favor of LD_LIBRARY_PATH.