diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-07-16 16:21:04 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-07-16 16:21:04 +0100 |
commit | 6756f54d52915b2bcd95fa0fc98e7c937748b46e (patch) | |
tree | 356251902a7777da587b529aaea3ca0e09db7197 | |
parent | bfc10ee6b315fb282bdcdb3652370b6e85c274f5 (diff) |
moved mkfifo outside netcat loop
-rwxr-xr-x | gosher | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |