mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-13 10:24:50 -07:00
p2console busy loops when it cannot read from stdin
This commit is contained in:
parent
2b867b17f4
commit
0c4d9c8502
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
TIME=$(date +%s)
|
||||||
/opt/p2/bin/p2console
|
/opt/p2/bin/p2console
|
||||||
|
if [ $TIME = $(date +%s) ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
done | /opt/p2/bin/modem
|
done | /opt/p2/bin/modem
|
||||||
|
|
Loading…
Reference in a new issue