p2console busy loops when it cannot read from stdin

This commit is contained in:
Aaron McPhall 2013-07-27 23:23:44 -06:00
parent a93d5be810
commit 59275852f1
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#! /bin/sh
while true; do
TIME=$(date +%s)
/opt/p2/bin/p2console
if [ $TIME = $(date +%s) ]; then
exit
fi
done | /opt/p2/bin/modem