|
From: Paul M. <pa...@sa...> - 2005-04-07 22:56:47
|
Jeremy Fitzhardinge writes: > No, that's not right. VG_(sceduler_init) calls registers > sched_fork_cleanup as a child atfork handler. sched_fork_cleanup, among > other things, reinitializes the semaphore with a new pipe so the process Ahhh... thank you, that's what I was missing. > has its own. Perhaps your fork() syscall handler isn't calling > VG_(do_atfork_*)? No, it was something else, even more embarrassing (I had PLATFORM_SET_SYSCALL_RESULT evaluating its second argument more than once, and that was VG_(do_syscall)(__NR_fork) in one place... :) Thanks, Paul. |