diff options
-rw-r--r-- | src/dirax.c | 2 |
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; } |