]> git.proxmox.com Git - qemu.git/blobdiff - os-posix.c
qapi schema: add Netdev types
[qemu.git] / os-posix.c
index 5c437ca12ca1b66cb515cbebd770a201ae2e91ed..daf3d6f6f381105a04b09ec5efa54a756ddd30a6 100644 (file)
 #include <sys/prctl.h>
 #endif
 
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
 static struct passwd *user_pwd;
 static const char *chroot_dir;
 static int daemonize;
@@ -348,6 +352,6 @@ int qemu_create_pidfile(const char *filename)
         return -1;
     }
 
-    close(fd);
+    /* keep pidfile open & locked forever */
     return 0;
 }