mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08: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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user