mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 03:26:26 +00:00
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: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
c698ca5278
commit
9f23b129eb
1 changed files with 3 additions and 0 deletions
|
@ -1515,6 +1515,9 @@ sub close_console {
|
||||||
doprint "kill child process $pid\n";
|
doprint "kill child process $pid\n";
|
||||||
kill $close_console_signal, $pid;
|
kill $close_console_signal, $pid;
|
||||||
|
|
||||||
|
doprint "wait for child process $pid to exit\n";
|
||||||
|
waitpid($pid, 0);
|
||||||
|
|
||||||
print "closing!\n";
|
print "closing!\n";
|
||||||
close($fp);
|
close($fp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue