mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 07:06:28 +00:00
Close awk fhs to avoid 'too many open files' error.
This commit is contained in:
@@ -97,10 +97,12 @@ parse_options() {
|
|||||||
if ($0 ~ /^[a-z]/ ) {
|
if ($0 ~ /^[a-z]/ ) {
|
||||||
# spec line like "type: int; default: 100"
|
# spec line like "type: int; default: 100"
|
||||||
print "long:" long_opt "; " $0 | trf
|
print "long:" long_opt "; " $0 | trf
|
||||||
|
close(trf)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# no specs, should be description of option
|
# no specs, should be description of option
|
||||||
print "long:" long_opt > spec_file
|
print "long:" long_opt > spec_file
|
||||||
|
close(spec_file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getline
|
getline
|
||||||
|
Reference in New Issue
Block a user