summaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/ktest.pl
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-21 10:24:20 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-21 10:24:20 -0400
commit9f23b129eb35c1465aa1733884acad3d95c8fde7 (patch)
tree24eee8f6cf70f9bb24c11b064556c40d482bae32 /tools/testing/ktest/ktest.pl
parentc698ca5278934c0ae32297a8725ced2e27585d7f (diff)
downloadlinux-9f23b129eb35c1465aa1733884acad3d95c8fde7.tar.gz
linux-9f23b129eb35c1465aa1733884acad3d95c8fde7.tar.bz2
linux-9f23b129eb35c1465aa1733884acad3d95c8fde7.zip
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>
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 0c8b61f8398e..4eece2a9772c 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -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);