aboutsummaryrefslogtreecommitdiffstats
path: root/test/iolint.awk
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2021-12-07 12:00:22 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2021-12-07 12:00:22 -0500
commite03c8822c48bedfe6cc7fbd5a9382d9630de6494 (patch)
treefc65ceddd8e959ccd6c6bb041ee5061262e89c0d /test/iolint.awk
parent7d8a75a766b17fe395c0a82050d314c2dea57f3e (diff)
downloadegawk-e03c8822c48bedfe6cc7fbd5a9382d9630de6494.tar.gz
egawk-e03c8822c48bedfe6cc7fbd5a9382d9630de6494.tar.bz2
egawk-e03c8822c48bedfe6cc7fbd5a9382d9630de6494.zip
Reorder statements in iolint to try to eliminate a race condition.
Diffstat (limited to 'test/iolint.awk')
-rw-r--r--test/iolint.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/iolint.awk b/test/iolint.awk
index 042f743b..3ebaf436 100644
--- a/test/iolint.awk
+++ b/test/iolint.awk
@@ -49,8 +49,8 @@ BEGIN {
# `%.*s' used for output pipe and two-way pipe
# Not doing |& due to race condition and signals. sigh
cat = "cat"
- print "hello" | "cat"
print "/bin/cat \"$@\"" > "cat"
+ print "hello" | "cat"
print close("cat")
print close("cat")
fflush()