https://bugs.kde.org/show_bug.cgi?id=445011

--- Comment #7 from Tom Hughes <t...@compton.nu> ---
I did some looking at this and I think probably m_signals.c needs to provide a
way to register pids which should be ignored and not passed on to the client
when SIGCHLD arrives.

Then either VG_(fork) or readelf.c could register the pids - currently the only
direct user of VG_(fork) is readelf.c for starting the debuginfo fetcher.

The only other use of VG_(fork) is to implement VG_(spawn) on non-solaris
systems and in turn that is only used by VG_(system) which does make some
attempt to deal with SIGCHLD though I'm not sure it's correct - aside from
anything else it changes the CHLD handler after the fork has already been done
so there would appear to be a race condition.

Users of VG_(system) are the PDB and MACHO debug readers which use it to run
external tools and the gdb server, so it's possible those can also trigger
false SIGCHLD reports to the client.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to