1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

check if the proxy use qemu before opening qemu's tmp files

This commit is contained in:
Stefan Lankes 2017-02-21 09:18:07 +01:00
parent 76e883c423
commit 8a4ef8efd0

View file

@ -84,8 +84,11 @@ int init_uhyve(char *path);
static void fini_qemu(void)
{
FILE* fp = NULL;
// try to kill qemu
FILE* fp = fopen(pidname, "r");
if (qemu)
fp = fopen(pidname, "r");
if (fp) {
pid_t id = -1;