[Bug translator/16614] signal forwarding to child processes uses invalid pthread* functions
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Feb 20 20:58:00 GMT 2014
https://sourceware.org/bugzilla/show_bug.cgi?id=16614
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com
--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
(In reply to Frank Ch. Eigler from comment #0)
> We need a signal-safe structure for collecting & iterating child pids.
We may just need to make spawned_pids_t properly either-or, signal-safe or
thread-safe but not both. At the moment, stap is single-threaded and calls
kill_stap_spawn from a signal handler; stap-serverd is multithreaded but only
kills via main. So stap only needs the signal-masking, and stap-serverd only
needs the pthread mutex. (In fact, the use of sigprocmask is unspecified in
multithreaded processes.)
This is half-way selected by the SINGLE_THREADED macro now, but that's a big
hammer, not even set by stap.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list