iowatcher: Separate program running from waiting
authorAndrew Price <anprice@redhat.com>
Sat, 26 Apr 2014 14:31:19 +0000 (15:31 +0100)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
commit33e3face4ae0c7e0f67e3a92edc8d1e818ef6515
tree1e29a8a22026a20bf055d2664ef4b91446266bc7
parent7f64c1928f85235e01e6f268fdc4cbfc921b5c42
iowatcher: Separate program running from waiting

Until now run_program2() was a replacement for system() so it always
waited for the process to end before returning. To make this function
more useful move the waiting code into a separate function and add a
mechanism to expect a specific exit code.

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