Commit 9d5cc904 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Wait for strace child process to die properly

parent 723bddfb
......@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment