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:
Johannes Findeisen 2023-02-22 17:14:02 +01:00
commit 3078d125e8
2 changed files with 4 additions and 5 deletions

View file

@ -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()