aboutsummaryrefslogtreecommitdiffstats
path: root/test/fork.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-10-12 22:10:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-10-12 22:10:00 +0300
commit56d3294aaae852fae059ec61ab56482bef2679f2 (patch)
tree9471dfe94aa09717da127c8e4b90793af7c3131a /test/fork.awk
parentf6f4abd11c600e16a2fe868bdd0bbda5e616f0c8 (diff)
parent6b459d91405cd9e2306e9b32d24ed1fcacc52f7c (diff)
downloadegawk-56d3294aaae852fae059ec61ab56482bef2679f2.tar.gz
egawk-56d3294aaae852fae059ec61ab56482bef2679f2.tar.bz2
egawk-56d3294aaae852fae059ec61ab56482bef2679f2.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'test/fork.awk')
-rw-r--r--test/fork.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fork.awk b/test/fork.awk
index 0b29f9ff..af608ad5 100644
--- a/test/fork.awk
+++ b/test/fork.awk
@@ -20,6 +20,7 @@ BEGIN {
else if ((getline x < fn) != 1)
printf "Error: getline failed on temp file %s\n", fn
else {
+ close(fn) # required on non-POSIX systems
expected = ("pid " pid " ppid " PROCINFO["pid"])
if (x != expected)
printf "Error: child data (%s) != expected (%s)\n", x, expected