mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
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:
parent
759c18d9f5
commit
df65371d72
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ UNICORN_PID=$!
|
||||||
|
|
||||||
echo "supervisor pid: $UNICORN_SUPERVISOR_PID unicorn pid: $UNICORN_PID"
|
echo "supervisor pid: $UNICORN_SUPERVISOR_PID unicorn pid: $UNICORN_PID"
|
||||||
|
|
||||||
while [ -e /proc/$UNICORN_PID ]
|
while kill -0 $UNICORN_PID
|
||||||
do
|
do
|
||||||
sleep 0.1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue