now now exit if display daemin dies
This commit is contained in:
parent
5124cf1d23
commit
15493ee6aa
|
@ -37,7 +37,6 @@ def print_display(s):
|
|||
global display_fifo
|
||||
if not display_fifo:
|
||||
try:
|
||||
#display_fifo = open('/tmp/display', 'w')
|
||||
fd = os.open( "/tmp/display", os.O_WRONLY)
|
||||
display_fifo = os.fdopen(fd,"w")
|
||||
except OSError:
|
||||
|
@ -48,8 +47,13 @@ def print_display(s):
|
|||
display_fifo = None
|
||||
pass
|
||||
return
|
||||
try:
|
||||
display_fifo.write(s)
|
||||
display_fifo.flush()
|
||||
except IOError:
|
||||
display_fifo = None
|
||||
pass
|
||||
return
|
||||
|
||||
|
||||
def clear():
|
||||
|
|
Loading…
Reference in New Issue