summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-05-09 17:58:40 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-05-09 17:58:40 +0000
commit9d5cc90497dcac0b77f97ad81cd17219d182f333 (patch)
treeaf942bf096598dd9c3862fc529f4316de428a08f
parent723bddfb87d739f2002a8cabeffab1533d903caf (diff)
Wait for strace child process to die properly
-rw-r--r--TraceScreen.c3
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);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy