commit c331ba47e03a473f98cb109277562500fe7994d5
parent 949f6e757e70999ccc9216d11ab39691a15cc77d
Author: Léo Villeveygoux <l@vgx.fr>
Date: Thu, 4 Jun 2020 02:24:36 +0200
Close command FIFO after EOF
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gem.awk b/gem.awk
@@ -27,6 +27,7 @@ function parse_gemini(connexion_cmd) {
else
PAGE_LINES[++PAGE_LINE_NUM]=$0
}
+ close(connexion_cmd)
for (i in PAGE_LINES)
print PAGE_LINES[i]
@@ -35,6 +36,7 @@ function parse_gemini(connexion_cmd) {
function print_text(connexion_cmd) {
while (connexion_cmd | getline)
print
+ close(connexion_cmd)
}
function connexion_open(domain, path, port) {