aboutsummaryrefslogtreecommitdiffstats
path: root/test/fork2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/fork2.awk')
-rw-r--r--test/fork2.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fork2.awk b/test/fork2.awk
index bd364286..a8ae5622 100644
--- a/test/fork2.awk
+++ b/test/fork2.awk
@@ -22,6 +22,7 @@ BEGIN {
else if ((getline x < fn) != 1)
printf "Error: getline failed on temp file %s\n", fn
else {
+ close(fn) # needed on non-POSIX systems
expected = ("pid " pid " ppid " PROCINFO["pid"])
if (x != expected)
printf "Error: child data (%s) != expected (%s)\n", x, expected