From 584c967ac972afad020150a92315045c0e9bd5dc Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 3 Aug 2020 10:42:37 -0700 Subject: [PATCH] Fixed edge case bug on linux where if KVM is running when parent process is terminated, the kvm process causes the agent to restart. --- meshcore/KVM/Linux/linux_kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/meshcore/KVM/Linux/linux_kvm.c b/meshcore/KVM/Linux/linux_kvm.c index eb16bb3..839327f 100644 --- a/meshcore/KVM/Linux/linux_kvm.c +++ b/meshcore/KVM/Linux/linux_kvm.c @@ -1331,6 +1331,7 @@ void* kvm_relay_restart(int paused, void *processPipeMgr, ILibKVM_WriteHandler w if (dispid != NULL) { setenv("DISPLAY", dispid, 1); } kvm_server_mainloop((void*)0); + exit(0); return(NULL); } else