Commit 2fa7e9f0 authored by Ralf's avatar Ralf

python is a piece of crap

parent af0b49e7
......@@ -42,7 +42,10 @@ try:
except:
# Make sure we log the error
logger.critical("FATAL TOP-LEVEL EXCEPTION DURING BOOT:\n{}".format(traceback.format_exc()))
sys.exit(1) # go away
# Python is a piece of crap, and it will try to join the threads if we do sys.exit. That will, of course, deadlock as
# we are in some random failure state. So circumvent that stuff.
import os
os._exit(1)
try:
# tell the i2c that all initial values are set
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment