BUGFIX: microcontroller was consuming too much CPU

sleep 0.1 and file test were expensive compared to a signal every second
This commit is contained in:
Sam 2014-02-05 10:48:36 +11:00
parent 759c18d9f5
commit df65371d72

View File

@ -33,7 +33,7 @@ UNICORN_PID=$!
echo "supervisor pid: $UNICORN_SUPERVISOR_PID unicorn pid: $UNICORN_PID"
while [ -e /proc/$UNICORN_PID ]
while kill -0 $UNICORN_PID
do
sleep 0.1
sleep 1
done