iowatcher: Convert start_blktrace to run_program
authorAndrew Price <anprice@redhat.com>
Sat, 26 Apr 2014 22:00:58 +0000 (23:00 +0100)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
commit30420b587db62a3d919d7bc68ef2dd07df5c75fd
tree47f5a61de3d1022b252d0a81a9b22d8e0a7f26dc
parentce225d502b505e189c4c138224a3bc50d0e05be5
iowatcher: Convert start_blktrace to run_program

Rework start_blktrace and use run_program to launch blktrace. Move the
argv-building into the function so that it's easier to work with and
clean it up a bit. Add a signal parameter to wait_program to optionally
kill the pid with a given signal before waiting for it.

Signed-off-by: Andrew Price <anprice@redhat.com>
iowatcher/tracers.c
iowatcher/tracers.h