From c3a43bcaa6eb7b252b83d8746504529c38361126 Mon Sep 17 00:00:00 2001 From: Bjorn Munch Date: Wed, 1 Apr 2009 16:23:10 +0200 Subject: [PATCH] Bug #43570 MTR2 hangs when test fails and named pipe created Hangs when trying to copy the pipe Amend copytree() to only copy regular files --- mysql-test/lib/My/File/Path.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/lib/My/File/Path.pm b/mysql-test/lib/My/File/Path.pm index 99edeecdaf7..25a26568eee 100644 --- a/mysql-test/lib/My/File/Path.pm +++ b/mysql-test/lib/My/File/Path.pm @@ -164,6 +164,9 @@ sub copytree { copytree("$from_dir/$_", "$to_dir/$_"); next; } + + # Only copy plain files + next unless -f "$from_dir/$_"; copy("$from_dir/$_", "$to_dir/$_"); } closedir(DIR);