From a5cb840a6150a7afe862e005d4cc4a10f0f580b8 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Tue, 29 Nov 2022 19:34:56 -0600 Subject: [PATCH] Fix PID 0 issue --- ippigeon.py | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ippigeon.py b/ippigeon.py index 4d87ce3..775a1ea 100644 --- a/ippigeon.py +++ b/ippigeon.py @@ -218,8 +218,9 @@ def mainloop(pool): tmplist = settings["badapps"] settings["badapps"] = list() for x in tmplist: - send_notification("Killing PID " + str(x)) - kill(x) + if x > 0: + send_notification("Killing PID " + str(x)) + kill(x) if settings["fwll"] == True: global history diff --git a/requirements.txt b/requirements.txt index 6461a9b..9cf85fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,4 @@ pyyaml numpy bcrypt plyer -playsound \ No newline at end of file +playsound==1.2.2 \ No newline at end of file