]> sourceware.org Git - systemtap.git/commit
Create a signal-safe type for tracking spawned pids
authorJosh Stone <jistone@redhat.com>
Wed, 11 May 2011 00:33:59 +0000 (17:33 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 11 May 2011 00:46:34 +0000 (17:46 -0700)
commitb30895fac94372b6625f9bb0ffb965dbfda0ec9a
treec701678d0c804404d46cbb5fac80a8a4c0c5bddd
parent26f1e9535283543ca4231204f78324c5c57b277c
Create a signal-safe type for tracking spawned pids

* util.cxx (spawned_pids_t): New type which wraps a set<pid_t>, masking
  signals on each access to ensure consistency in and out of the signal
  handler.  The spawned_pids global is the only instance.
  (stap_waitpid): Use !contains(pid) rather than count(pid)==0.
  (kill_stap_spawn): Use spawned_pids_t::killall().
util.cxx
This page took 0.024638 seconds and 5 git commands to generate.