Use signal.pause() instead of while True to keep Linspector running. A while True loop starts using 100% of one CPU when there is no sleep() inserted. That's not a good way to keep a program running. (0.20.3)
This commit is contained in:
parent
7360ab1936
commit
3078d125e8
2 changed files with 4 additions and 5 deletions
|
|
@ -129,5 +129,4 @@ class Linspectord:
|
|||
# while development because the daemon even runs when internally is nothing to do.
|
||||
@staticmethod
|
||||
def run():
|
||||
while True:
|
||||
pass
|
||||
signal.pause()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue