]> sourceware.org Git - systemtap.git/commit
PR12749: Replace popen calls with stap_spawn_piped
authorJosh Stone <jistone@redhat.com>
Tue, 10 May 2011 22:03:02 +0000 (15:03 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 11 May 2011 00:46:34 +0000 (17:46 -0700)
commit58502ae448f74d82f5df3875bb35913fef9363b7
tree67c37503df4b31c14213fa391be08a64bf3e5356
parent92c6375c50d56c9ca3cc2f336a5f286e259a6037
PR12749: Replace popen calls with stap_spawn_piped

The new form has the advantages that child processes are managed by
signals to stap, and that arguments are provided in a vector so they
don't need to be escaped.

* dwflpp.cxx (dwflpp::iterate_over_libraries): Convert popen call to
  stap_spawn_piped, followed by fdopen so the same FILE* operations are
  still supported.  Finish with fclose+stap_waitpid instead of pclose.
* tapsets.cxx (symbol_table::read_from_elf_file): Ditto.
dwflpp.cxx
tapsets.cxx
This page took 0.022554 seconds and 5 git commands to generate.