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
"vscode:/vscode.git/clone" did not exist on "1879f901112e31717cb8f9844b043babc2f4d51d"
Commit
9d5cc904
authored
May 09, 2006
by
Hisham Muhammad
Browse files
Wait for strace child process to die properly
parent
723bddfb
Changes
1
Show whitespace changes
Inline
Side-by-side
TraceScreen.c
View file @
9d5cc904
...
@@ -11,6 +11,8 @@ in the source distribution for its full text.
...
@@ -11,6 +11,8 @@ in the source distribution for its full text.
#include <stdbool.h>
#include <stdbool.h>
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "TraceScreen.h"
#include "TraceScreen.h"
#include "ProcessList.h"
#include "ProcessList.h"
...
@@ -162,5 +164,6 @@ void TraceScreen_run(TraceScreen* this) {
...
@@ -162,5 +164,6 @@ void TraceScreen_run(TraceScreen* this) {
ListBox_draw
(
lb
,
true
);
ListBox_draw
(
lb
,
true
);
}
}
kill
(
child
,
SIGTERM
);
kill
(
child
,
SIGTERM
);
waitpid
(
child
,
NULL
,
0
);
fclose
(
strace
);
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