mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
monitor: add Error * argument to monitor_get_fd
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Luiz Capitulino
parent
9a3a88956c
commit
a9940fc4cb
3
dump.c
3
dump.c
@@ -836,9 +836,8 @@ void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin,
|
||||
|
||||
#if !defined(WIN32)
|
||||
if (strstart(file, "fd:", &p)) {
|
||||
fd = monitor_get_fd(cur_mon, p);
|
||||
fd = monitor_get_fd(cur_mon, p, errp);
|
||||
if (fd == -1) {
|
||||
error_set(errp, QERR_FD_NOT_FOUND, p);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user