* Workaround for bug #2273 - not pretty but works for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
85dbe55d9b
commit
0982317bea
|
@ -210,7 +210,7 @@ search_executable_in_path_list(const char *name, const char *pathList,
|
|||
}
|
||||
_kern_close(fd);
|
||||
}
|
||||
|
||||
|
||||
pathListLen = pathListEnd - pathEnd - 1;
|
||||
pathList = pathEnd + 1;
|
||||
}
|
||||
|
@ -397,6 +397,14 @@ runtime_loader(void *_args)
|
|||
gProgramArgs->env[i] += relocationOffset;
|
||||
}
|
||||
|
||||
if (!strcmp(gProgramArgs->program_path,
|
||||
"/boot/beos/system/runtime_loader")) {
|
||||
// TODO: this is a (temporary) work-around for bug #2273 which causes
|
||||
// the cache's mutex to be locked twice when starting the runtime_loader
|
||||
// itself.
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if DEBUG_RLD
|
||||
close(0); open("/dev/console", 0); /* stdin */
|
||||
close(1); open("/dev/console", 0); /* stdout */
|
||||
|
|
Loading…
Reference in New Issue