tp-libvirt icon indicating copy to clipboard operation
tp-libvirt copied to clipboard

Replacing pidof with pgrep to make it more generic!

Open Anushree-Mathur opened this issue 2 months ago • 2 comments

In the latest versions of QEMU, the QEMU process may run as qemu-system-, where represents any supported architecture. However, in some cases, it may still run as qemu-kvm. To ensure a more generic and reliable approach for identifying the QEMU process ID, it is recommended to replace the pidof command with pgrep, as pgrep provides broader compatibility and flexibility.

Signed-off-by: Anushree-Mathur [email protected]

Summary by CodeRabbit

  • Improvements
    • Enhanced QEMU process detection mechanism to support a broader range of QEMU variants, improving compatibility with additional QEMU invocation types beyond the standard variant.

✏️ Tip: You can customize this high-level summary in your review settings.

Anushree-Mathur avatar Dec 04 '25 05:12 Anushree-Mathur