commit | 33e3face4ae0c7e0f67e3a92edc8d1e818ef6515 | [log] [tgz] |
---|---|---|
author | Andrew Price <anprice@redhat.com> | Sat Apr 26 15:31:19 2014 +0100 |
committer | Chris Mason <clm@fb.com> | Wed Sep 24 12:02:09 2014 -0700 |
tree | 1e29a8a22026a20bf055d2664ef4b91446266bc7 | |
parent | 7f64c1928f85235e01e6f268fdc4cbfc921b5c42 [diff] |
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>