Fix possible resource leak

This commit is contained in:
DL6ER
2017-02-06 11:14:10 +01:00
parent 779ab0746c
commit c864ceebae
+1
View File
@@ -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");