commit | 3e1eb1fd24275cfe9a23089e34ac9e1df08e1cf6 | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Sat May 18 13:14:17 2002 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Sat May 18 13:14:17 2002 +0000 |
tree | 8e47fab37345180728f6a6936181bedb57192851 | |
parent | d9c2d6dc4c53f2d61e3c56d4034172c12b891259 [diff] |
Fix fork/exec stuff so it works again. We have to mangle LD_LIBRARY_PATH as well as LD_PRELOAD, so as to make our libpthread.so go out of scope when a child which we don't want to trace, is exec'd. Otherwise the child can wind up being connected to our libpthread.so but not to valgrind.so, which is an unworkable combination; you have to be connected to both or neither. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@291 a5019735-40e9-0310-863c-91ae7b9d1cf9