summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-02-18 15:49:41 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-02-18 16:04:01 +0100
commit69da48025407f22d293736fe241bbcaa98c60ec0 (patch)
tree965841f280e66703325263ad92803117e14a96af
parent60e6069a52a761e33db81349652eaff48bd5d83c (diff)
downloadfribid-69da48025407f22d293736fe241bbcaa98c60ec0.tar.gz
fribid-69da48025407f22d293736fe241bbcaa98c60ec0.tar.bz2
fribid-69da48025407f22d293736fe241bbcaa98c60ec0.zip
Removed WNOHANG from waitpid call because it left zombie processes
-rw-r--r--CHANGELOG4
-rw-r--r--plugin/ipc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 584312e..d287a4e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,8 @@
+0.1.1 - 2010-??-??
+ * Fixed a bug that sometimes caused PIDs of exited child processes
+ ("zombies") to be left around.
+
0.1.0 - 2010-02-03
* All occurances of the password in RAM are now cleared when they are
no longer needed.
diff --git a/plugin/ipc.c b/plugin/ipc.c
index f23e51a..efd68d5 100644
--- a/plugin/ipc.c
+++ b/plugin/ipc.c
@@ -105,7 +105,7 @@ static void openInteractivePipes(PipeInfo *pipeinfo, Plugin *plugin) {
static void closePipes(PipeInfo *pipeinfo) {
fclose(pipeinfo->out);
fclose(pipeinfo->in);
- waitpid(pipeinfo->child, NULL, WNOHANG);
+ waitpid(pipeinfo->child, NULL, 0);
}