From 6756f54d52915b2bcd95fa0fc98e7c937748b46e Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Mon, 16 Jul 2018 16:21:04 +0100 Subject: [PATCH] moved mkfifo outside netcat loop --- gosher | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gosher b/gosher index a099731..673942c 100755 --- a/gosher +++ b/gosher @@ -45,13 +45,12 @@ if [ -z "${MYNAME#gosher}" ]; then trap cleanup 0 HUP INT TRAP TERM QUIT + OUTF=${OPREFIX}$$ + INF=${IPREFIX}$$ + mkfifo -m 600 $OUTF $INF while [ 1 -eq 1 ]; do - OUTF=${OPREFIX}$$ - INF=${IPREFIX}$$ - mkfifo -m 600 $OUTF $INF ./gosher_serve ${GOPHERDIR} <$INF >$OUTF & ${NETCAT} -vv -l -p ${PORT} >$INF <$OUTF - rm $OUTF $INF ret=$? done exit 0