commit | 409e84f3f758daf5472e95249240522414b4142d | [log] [tgz] |
---|---|---|
author | Andrew Price <anprice@redhat.com> | Sat Apr 26 15:31:19 2014 +0100 |
committer | Andrew Price <anprice@redhat.com> | Sat Apr 26 15:31:19 2014 +0100 |
tree | df758127e826dc06d40bef1f08877de55741faed | |
parent | 04c78bb7014df9421357ccaffc41063944617a9b [diff] |
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>