diff --git a/src/main.c b/src/main.c
index 12947b8..067e933 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,6 +85,8 @@ void check_requirements()
}
+ pclose(fd);
+
fd = popen("lsmod | grep applesmc", "r");
if (!(fread (buf, 1, sizeof (buf), fd) > 0)) {
@@ -98,6 +100,8 @@ void check_requirements()
}
+ pclose(fd);
+
}
pclose the popened processes
This prevents two defunct sub processes hanging around.
2636e193c8570e32b8f265ec24e824c35fae82b6
John Ferlito <johnf@inodes.org> · 2014-05-24T19:51 ·
browse files at this commit
parents:
460e0ab