monitor: add Error-propagating monitor_handle_fd_param2()
commit5906366ef0474691e9cfd9aa54a525d43bd2df43
authorLaszlo Ersek <lersek@redhat.com>
Thu, 10 Apr 2014 08:24:31 +0000 (10 10:24 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 8 May 2014 18:19:58 +0000 (8 14:19 -0400)
treecbebda28e251a8741f1c4c10eebac6660f7f6ce1
parente9c5c1f40c949c5d2d7e1eeddf3caaed32e1c641
monitor: add Error-propagating monitor_handle_fd_param2()

and rebase monitor_handle_fd_param() to it. (Note that this will slightly
change the behavior when the qemu_parse_fd() branch is selected and it
fails: we now report (and in case of QMP, set) the error immediately,
rather than allowing the caller to set its own error message (if any)).

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
include/monitor/monitor.h
monitor.c