Unverified Commit 7d54647d authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Wait in background

parent ab0a5cf5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,5 +11,5 @@ LENGTH="${#HTML}"
RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"

while true; do
  echo -en "$RESPONSE" | nc -lp "${1:-5000}";
  echo -en "$RESPONSE" | nc -lp "${1:-5000}" & wait $!
done