Close awk fhs to avoid 'too many open files' error.

This commit is contained in:
Daniel Nichter
2011-12-02 14:43:43 -07:00
parent 75d2c99d45
commit 6764f4cd06

View File

@@ -97,10 +97,12 @@ parse_options() {
if ($0 ~ /^[a-z]/ ) {
# spec line like "type: int; default: 100"
print "long:" long_opt "; " $0 | trf
close(trf)
}
else {
# no specs, should be description of option
print "long:" long_opt > spec_file
close(spec_file)
}
}
getline