5 /* Snarfed from SBCL linux-so.c. You must free() the result yourself. */
6 const char* vm_executable_path() {
7 char* path = new char[PATH_MAX + 1];
9 int size = readlink("/proc/self/exe", path, PATH_MAX);
11 fatal_error("Cannot read /proc/self/exe", 0);
16 const char* ret = safe_strdup(path);