Commit 9f23b129 authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware)
Browse files

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: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent c698ca52
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);