Monitor: Audit handler return
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 11 Feb 2010 01:50:05 +0000 (23:50 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Feb 2010 21:18:18 +0000 (15:18 -0600)
commitbb89c2e901b1a0c1cb6b94392cae1f98e6660ed7
tree6ed4a75ed3535aeb2c5dd907b9b5609aaade533d
parentb8b08266bd58d26e9c6b529ab4130c13eaed3406
Monitor: Audit handler return

This commit verifies the following two rules specified by
Markus Armbruster:

1. If the handler returns failure, it must have passed an error.

   If it didn't, it's broken. Report an internal error to the client,
   and report the bug to the programmer.

2. If the handler returns success, it must not have passed an error.

   If it did, it's broken. Report the error to the client, and report
   the bug to the programmer.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c