ovs-lib: Return the exit status of ovs-ctl in ovs_ctl().
authorDuffie Cooley <dcooley@nicira.com>
Wed, 2 Oct 2013 14:07:43 +0000 (07:07 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 2 Oct 2013 17:32:51 +0000 (10:32 -0700)
commit9d46457e07cad9cd39b3f0ddb2ca9a50e74361b8
tree39890cc01a6e17c5c691d2d42693b340eeb270ea
parent0a37839c03307cc4cc726d27a7348c05d469c5eb
ovs-lib: Return the exit status of ovs-ctl in ovs_ctl().

commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs)
made changes in the startup scripts such that the o/p of ovs-ctl is logged
into ovs-ctl.log. But it had an unintended consequence that the exit status
of ovs-ctl was no longer returned. We would always return success(the exit
status of tee).

With this commit, we return the exit status of ovs-ctl instead of tee.
Code referenced from: (line wrapped).
http://unix.stackexchange.com/questions/14270/\
get-exit-status-of-process-thats-piped-to-another/70675#70675)

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Signed-off-by: Duffie Cooley <dcooley@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-lib.in