From 82792fbe72e2de4fa74f6bfc465159d86e59df43 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 3 Mar 2010 16:43:28 +0100 Subject: Kill zombies --- src/dirax.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3