diff options
| author | Roman Bogorodskiy <novel@FreeBSD.org> | 2026-08-11 16:20:31 +0000 |
|---|---|---|
| committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2026-08-15 08:58:02 +0000 |
| commit | 1f3aeb3ea5a52e16e87439160dc19c53526600c3 (patch) | |
| tree | 428c39e0a4a7782595f03101185614e58532bddc /sys/(developers-only) | |
| parent | fa0dc4f0f96a1b77d4be7bcdbf965897cda14521 (diff) | |
Currently, sending SIGTERM to the bhyve process triggers ACPI poweroff
for a VM. However, when running bhyve in monitor mode (-M), there are
two processes: the monitor process and the actual VM process. Sending
SIGTERM to the VM process works as before -- it powers off the VM.
But sending SIGTERM to the monitor process just kills the monitor
process, leaving the stale VM process running.
Fix that by creating a pipe between these two processes. The child
process uses the pipe to detect when the monitor goes away, and exits
automatically.
MFC after: 2 weeks
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58788
Diffstat (limited to 'sys/(developers-only)')
0 files changed, 0 insertions, 0 deletions
