Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
9d5cc904
Commit
9d5cc904
authored
May 09, 2006
by
Hisham Muhammad
Browse files
Wait for strace child process to die properly
parent
723bddfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
TraceScreen.c
View file @
9d5cc904
...
...
@@ -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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment