Skip to content

Commit

Permalink
Fixed the multiprocessing Issue (#5)
Browse files Browse the repository at this point in the history
* Reverted timeout and added debugging statements
* No Idea how, but that fixed it
  • Loading branch information
cdchris12 authored Apr 6, 2018
1 parent 540b3d3 commit ee77951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RebootServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,17 @@ def status (self, q=None):
program = self.healthCheck()
if program:
if q: q.put((self.name, 1))
print ("%s, %s" % (self.name, "1"))
return(1)
else:
if q: q.put((self.name, 2))
print ("%s, %s" % (self.name, "2"))
return(2)
# End if/else block

else:
if q: q.put((self.name, 0))
print ("%s, %s" % (self.name, "0"))
return(0)
# End if/else block
# End def
Expand Down
2 changes: 1 addition & 1 deletion flask_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def statusAll():
# End for

for _p in processes:
_p.join(timeout=2)
_p.join()
# End for

results = {}
Expand Down

0 comments on commit ee77951

Please sign in to comment.