Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
small fix for zcron to make sure the server side socket closes properly
Browse files Browse the repository at this point in the history
  • Loading branch information
wburgers committed Nov 7, 2015
1 parent e4e3161 commit 6b427a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/zcron.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
exec {fd}<>"/dev/tcp/localhost/60004"
echo "CRON" >&$fd
head -n0 <&$fd
head -n1 <&$fd > /dev/null
exec {fd}>&-
exec {fd}<&-
exec {fd}<&-

0 comments on commit 6b427a0

Please sign in to comment.