]> sourceware.org Git - systemtap.git/commit - remote.cxx
Start using arg vectors for stap_system and friends
authorJosh Stone <jistone@redhat.com>
Fri, 11 Feb 2011 02:46:19 +0000 (18:46 -0800)
committerJosh Stone <jistone@redhat.com>
Fri, 11 Feb 2011 02:46:19 +0000 (18:46 -0800)
commit20f90026bb38608bc4fea2e943d0514dee3b7fc8
treef880e05a27d0d731891c0a8d90e2d849811fc90b
parentb63fab8739c5c6d6a83c5225682fb64cebd7b208
Start using arg vectors for stap_system and friends

Instead of worrying about quoting properly in every command string, we
can rest easier by launching processes with a proper argv[].  All of the
stap_system-like functions are converted, but a flat-string stap_system
is also kept around for now while callers are converted.

* util.cxx (stap_spawn): Take a vector<string> for command arguments,
  convert that to an argv[], and use that for posix_spawnp.  Note the
  conversion to spawnp as well so PATH-searching is still performed.
  (stap_system, stap_system_read): Convert to vectors, but keep a flat
  version of the former for compatibility.
  (probe stap_system__start): Move to stap_spawn, to probe all flavors.
  (probe stap_system__complete): Likewise, move to stap_waitpid, to
  probe when any process is finished; add a pid to track who's done.
* remote.cxx (direct, ssh_remote): Convert all calls to vector form.
buildrun.h
remote.cxx
util.cxx
util.h
This page took 0.028392 seconds and 5 git commands to generate.