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:
parent
76e883c423
commit
8a4ef8efd0
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue