From 9d5cc90497dcac0b77f97ad81cd17219d182f333 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 9 May 2006 17:58:40 +0000 Subject: Wait for strace child process to die properly --- TraceScreen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TraceScreen.c b/TraceScreen.c index 8d5bb798..a5fedede 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -11,6 +11,8 @@ in the source distribution for its full text. #include #include #include +#include +#include #include "TraceScreen.h" #include "ProcessList.h" @@ -162,5 +164,6 @@ void TraceScreen_run(TraceScreen* this) { ListBox_draw(lb, true); } kill(child, SIGTERM); + waitpid(child, NULL, 0); fclose(strace); } -- cgit v1.2.3