On 2007-08-09 at 17:31:20 [+0200], Jonas Sundström <jonas@xxxxxxxxxxx> wrote: > I just saw a Haiku sh -login process without a rld_lock > semaphore, only having the fork_lock and the env_lock. > > Is that supposed to happen? Good catch. I guess, the runtime loader needs to register an fork hook, or the child fork initialization. It also doesn't look quit right, that the __init_fork(), which initializes a static sForkLock variable -- is called by fork(), but the variable is already used by atfork(). CU, Ingo