]> xenbits.xensource.com Git - libvirt.git/commit
hooks: let virCommand do the error reporting
authorEric Blake <eblake@redhat.com>
Tue, 9 Oct 2012 03:44:36 +0000 (21:44 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 9 Oct 2012 14:41:53 +0000 (08:41 -0600)
commit9c74414ded1ccc7378d8075000eb476917c196e4
treef79ee3c367e905c322bc2cd6737c0cd2edfaf3f2
parent60dea2c6bff0d3ee0df3bda9c8521bdfc42407f3
hooks: let virCommand do the error reporting

The code was reporting raw exit status without decoding it into
normal vs. signal exit.  virCommandRun already does this, but
with a different error type, so all we have to do is recast
the error to the correct type.
Reported by li guang.

* src/util/hooks.c (virHookCall): Simplify.
src/util/hooks.c