diff options
author | Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> | 2024-03-20 18:16:47 +0200 |
---|---|---|
committer | Konstantin Kostiuk <kkostiuk@redhat.com> | 2024-05-01 10:10:08 +0300 |
commit | 2048129625bdca60bc76d3b8c3ee51c08aacedc2 (patch) | |
tree | 4b0d1142f0f56d73eb88df76dd66c870c476435a /qga/commands-common-ssh.h | |
parent | 8ef383b460826e1ab138e892559f7ed2305e049d (diff) | |
download | qemu-2048129625bdca60bc76d3b8c3ee51c08aacedc2.zip qemu-2048129625bdca60bc76d3b8c3ee51c08aacedc2.tar.gz qemu-2048129625bdca60bc76d3b8c3ee51c08aacedc2.tar.bz2 |
qga/commands-posix: don't do fork()/exec() when suspending via sysfs
Since commit 246d76eba ("qga: guest_suspend: decoupling pm-utils and sys
logic") pm-utils logic is running in a separate child from the sysfs
logic. Now when suspending via sysfs we don't really need to do that in
a separate process as we only need to perform one write to /sys/power/state.
Let's just use g_file_set_contents() to simplify things here.
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Link: https://lore.kernel.org/r/20240320161648.158226-7-andrey.drobyshev@virtuozzo.com
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'qga/commands-common-ssh.h')
0 files changed, 0 insertions, 0 deletions