changeset 5:7b3d89b8fc9f draft

Uploaded
author geert-vandeweyer
date Mon, 28 Jul 2014 07:50:55 -0400
parents 606e24c6fda0
children 5ddb40c3017c
files GrepFile.pl
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/GrepFile.pl	Mon Jul 28 07:45:02 2014 -0400
+++ b/GrepFile.pl	Mon Jul 28 07:50:55 2014 -0400
@@ -117,10 +117,10 @@
 	for ($i = 1; $i<= $nrgrep ; $i++) {
 		${"grep$i"}->join();
 	}
+
+	$printqueue->enqueue(undef);
+	$print->join();
 }
-$printqueue->enqueue(undef);
-$print->join();
-
 system("cp $tmpdir/result.txt '$outfile'");
 
 system("rm -Rf $tmpdir");