170505.1 · 0186bd1526e452a3bd6df2ff35dc027e495859ef
Add a waitpid
reading declarations
Changes to dev/linecount-fork. All files
@@ -30,6 +30,7 @@ if ($child_pid = fork()) { printf "%5d: %s\n", $n, $file; $total += $n; }+ waitpid $child_pid, 0; say "$total lines of text in $start"; } else {