aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-03 16:43:28 +0100
committerThomas White <taw@physics.org>2010-03-03 16:43:28 +0100
commit82792fbe72e2de4fa74f6bfc465159d86e59df43 (patch)
tree48f8f2a28aa2c97cdb926b5b1cc30756de101754
parent11cca384eaa2d39ea9d04efbd81441c6a8a1f4dd (diff)
Kill zombies
-rw-r--r--src/dirax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dirax.c b/src/dirax.c
index 4ffa2209..78f2f2b3 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -314,6 +314,7 @@ void run_dirax(struct image *image)
{
unsigned int opts;
int saved_stderr;
+ int status;
saved_stderr = dup(STDERR_FILENO);
image->dirax_pid = forkpty(&image->dirax_pty, NULL, NULL, NULL);
@@ -358,6 +359,7 @@ void run_dirax(struct image *image)
image->dirax_ml = g_main_loop_new(NULL, FALSE);
g_main_loop_run(image->dirax_ml);
close(image->dirax_pty);
+ wait(&status);
return;
}