diff --git a/daemon.c b/daemon.c index 24e51d23..aa25e316 100644 --- a/daemon.c +++ b/daemon.c @@ -24,6 +24,7 @@ bool test_singularity(void) // process group ID even for processes that don't belong to us int pid; fscanf(f,"%d",&pid); + fclose(f); if (getpgid(pid) >= 0) { // Other process is running printf("FATAL: Another FTL process is already running! Exiting...\n");