]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/hv: reduce resource usage in hv_kvp_daemon
authorOlaf Hering <olaf@aepfle.de>
Sun, 8 Dec 2024 23:47:17 +0000 (23:47 +0000)
committerWei Liu <wei.liu@kernel.org>
Mon, 9 Dec 2024 18:44:15 +0000 (18:44 +0000)
commit175c71c2aceef173ae6d3dceb41edfc2ac0d5937
treecb5427974a28e5ed1d5936aa8ce5e33c7e998ab3
parentbecc7fe329c09a7744fa908fca83418fa94a45a0
tools/hv: reduce resource usage in hv_kvp_daemon

hv_kvp_daemon uses popen(3) and system(3) as convinience helper to
launch external helpers. These helpers are invoked via a
temporary shell process. There is no need to keep this temporary
process around while the helper runs. Replace this temporary shell
with the actual helper process via 'exec'.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Link: https://lore.kernel.org/linux-hyperv/20241202123520.27812-1-olaf@aepfle.de/
Signed-off-by: Wei Liu <wei.liu@kernel.org>
tools/hv/hv_kvp_daemon.c