]> git.ipfire.org Git - thirdparty/qemu.git/commit
python/qmp: add send_fd_scm directly to QEMUMonitorProtocol
authorJohn Snow <jsnow@redhat.com>
Thu, 23 Sep 2021 00:49:30 +0000 (20:49 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 12 Oct 2021 16:22:11 +0000 (12:22 -0400)
commit514d00df5f44f220d0b97cc71323275067d3e60e
tree92c31e0578fa5cf69793fb9b5db2870f9233786a
parentd911accf0a88070120f7cc71c065fb797484d9b7
python/qmp: add send_fd_scm directly to QEMUMonitorProtocol

It turns out you can do this directly from Python ... and because of
this, you don't need to worry about setting the inheritability of the
fds or spawning another process.

Doing this is helpful because it allows QEMUMonitorProtocol to keep its
file descriptor and socket object as private implementation
details. /that/ is helpful in turn because it allows me to write a
compatible, alternative implementation.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210923004938.3999963-10-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py
python/qemu/qmp/__init__.py