* 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:
Axel Dörfler
2008-10-24 10:15:39 +00:00
parent 85dbe55d9b
commit 0982317bea
@@ -397,6 +397,14 @@ runtime_loader(void *_args)
gProgramArgs->env[i] += relocationOffset; 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 #if DEBUG_RLD
close(0); open("/dev/console", 0); /* stdin */ close(0); open("/dev/console", 0); /* stdin */
close(1); open("/dev/console", 0); /* stdout */ close(1); open("/dev/console", 0); /* stdout */