提交 9f23b129 编写于 作者: S Steven Rostedt (VMware)

ktest: Wait for console process to exit

To clean up the console processes that are forked to monitor the console,
there needs to be a waitpid().
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 c698ca52
......@@ -1515,6 +1515,9 @@ sub close_console {
doprint "kill child process $pid\n";
kill $close_console_signal, $pid;
doprint "wait for child process $pid to exit\n";
waitpid($pid, 0);
print "closing!\n";
close($fp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册