1.0.37.54: more robust runtime executable path detection
authorNikodemus Siivola <nikodemus@random-state.net>
Wed, 7 Apr 2010 16:14:21 +0000 (16:14 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Wed, 7 Apr 2010 16:14:21 +0000 (16:14 +0000)
commit3257c25015012253a096c990d5809daee974d057
tree15f6ff02734c83a2d60cf09ae87e88355313a8ad
parentcb68bde807e1cf6d0357cc9cd7dfa5547b0ca342
1.0.37.54: more robust runtime executable path detection

 Patch by Josh Elsasser.

 * os_get_runtime_executable_path() extended with an argument to
   indicate if the returned path should be externally usable (which
   precludes paths such as /proc/curproc/file).

 * If os_get_runtime_executable_path() fails, use an argv[0] derived
   path instead.

 * Check build_id when saving executable cores to make sure we got
   the right runtime -- since using the argv[0] method can otherwise
   go wrong once in a blue moon.

 Fixes Launchpad #375549.
14 files changed:
NEWS
src/code/common-os.lisp
src/runtime/bsd-os.c
src/runtime/darwin-os.c
src/runtime/hpux-os.c
src/runtime/linux-os.c
src/runtime/os.h
src/runtime/osf1-os.c
src/runtime/runtime.c
src/runtime/runtime.h
src/runtime/save.c
src/runtime/sunos-os.c
src/runtime/win32-os.c
version.lisp-expr