From df65371d720408dee2b11f7b9e96ffd354589a59 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 5 Feb 2014 10:48:36 +1100 Subject: [PATCH] BUGFIX: microcontroller was consuming too much CPU sleep 0.1 and file test were expensive compared to a signal every second --- config/unicorn_launcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/unicorn_launcher b/config/unicorn_launcher index e0c277c9c..60e20cf89 100755 --- a/config/unicorn_launcher +++ b/config/unicorn_launcher @@ -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