diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-05-09 17:58:40 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-05-09 17:58:40 +0000 |
commit | 9d5cc90497dcac0b77f97ad81cd17219d182f333 (patch) | |
tree | af942bf096598dd9c3862fc529f4316de428a08f /TraceScreen.c | |
parent | 723bddfb87d739f2002a8cabeffab1533d903caf (diff) |
Wait for strace child process to die properly
Diffstat (limited to 'TraceScreen.c')
-rw-r--r-- | TraceScreen.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdbool.h> #include <unistd.h> #include <fcntl.h> +#include <sys/types.h> +#include <sys/wait.h> #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); } |