diff options
-rw-r--r-- | qga/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -299,10 +299,12 @@ static bool ga_open_pidfile(const char *pidfile) goto fail; } + /* keep pidfile open & locked forever */ return true; fail: unlink(pidfile); + close(pidfd); return false; } #else /* _WIN32 */ |