Currently, if an IPC client (e.g. bhyvectl --get-vm-pid) exits
before reading the response, the VM crashes with SIGPIPE.
Set SO_NOSIGPIPE on a socket to prevent that.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential D62000
bhyve: disable SIGPIPE for IPC connections Authored by novel on Tue, Nov 24, 6:55 PM.
Details
Currently, if an IPC client (e.g. bhyvectl --get-vm-pid) exits MFC after: 1 week Can be reproduced with: dtrace -w -n '
pid$target::FreeBSD_nvlist_send:return
/arg1 == 0/
{
raise(9);
}' -c '/usr/sbin/bhyvectl --vm=bootorder-test --get-vm-pid'
Diff Detail
Event Timeline
| ||||||||||||||||||||||||