From: Julian Seward Date: Sat, 9 Apr 2005 18:24:19 +0000 (+0000) Subject: Record useful info from Jeremy. X-Git-Tag: svn/VALGRIND_3_0_0~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ac5b356f937767d5553286800a315857e86056;p=thirdparty%2Fvalgrind.git Record useful info from Jeremy. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3529 --- diff --git a/THREADS_SYSCALLS_SIGNALS.txt b/THREADS_SYSCALLS_SIGNALS.txt index 3f06d7108a..5a083c1222 100644 --- a/THREADS_SYSCALLS_SIGNALS.txt +++ b/THREADS_SYSCALLS_SIGNALS.txt @@ -19,6 +19,13 @@ extern void VG_(set_sleeping) ( ThreadId tid, ThreadStatus state ); The master semaphore is run_sema in vg_scheduler.c. + +(what happens at a fork?) + +VG_(scheduler_init) 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 has its own. + -------------------------------------------------------------------- Re: New World signal handling