diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-02 19:05:41 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 15:46:09 +0400 |
commit | 4bf21c7f748bee42b6f4692f8c37a11d1033b2d1 (patch) | |
tree | 2020afbc1d980f53767c061e01e23ee98e722c83 /qapi | |
parent | f02b2c19174e3b5e0823e55cfb50d1b3153a485e (diff) | |
download | qemu-4bf21c7f748bee42b6f4692f8c37a11d1033b2d1.zip qemu-4bf21c7f748bee42b6f4692f8c37a11d1033b2d1.tar.gz qemu-4bf21c7f748bee42b6f4692f8c37a11d1033b2d1.tar.bz2 |
monitor: restrict command getfd to POSIX hosts
Currently, the function will simply fail if ancillary fds are not
provided, for ex on unsupported platforms.
This changes the failure from:
{"error": {"class": "GenericError", "desc": "No file descriptor
supplied via SCM_RIGHTS"}}
to:
{"error": {"class": "CommandNotFound", "desc": "The command getfd
has not been found"}}
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/misc.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qapi/misc.json b/qapi/misc.json index 5ef6286..6ddd16e 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -273,7 +273,7 @@ # <- { "return": {} } # ## -{ 'command': 'getfd', 'data': {'fdname': 'str'} } +{ 'command': 'getfd', 'data': {'fdname': 'str'}, 'if': 'CONFIG_POSIX' } ## # @get-win32-socket: |