summaryrefslogtreecommitdiff
path: root/src/backend/sysupgrade.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-02 23:41:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-02 23:49:22 +0100
commit17e31142c0021821319cd3effc5e9ba4cccf5d82 (patch)
treeb16a57e97872c64fc25ecd2aa9ddaf7e459ff0d8 /src/backend/sysupgrade.py
parent0696a49613d65833a4d3ff278ca81a4588b5178b (diff)
GUI frontend:v6.2409.0
* listen for SIGTERM signal backend : * send SIGTERM to GUI application to terminate it gracefully when required
Diffstat (limited to 'src/backend/sysupgrade.py')
-rw-r--r--src/backend/sysupgrade.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/sysupgrade.py b/src/backend/sysupgrade.py
index f8b01d2..c773366 100644
--- a/src/backend/sysupgrade.py
+++ b/src/backend/sysupgrade.py
@@ -82,7 +82,7 @@ def start(ebuild=False, gfx_ui=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(f"{sisyphus.getclr.bright_red}\nCannot proceed!\n{sisyphus.getclr.reset}{sisyphus.getclr.bright_yellow}Please apply the above changes to your portage configuration files and try again!{sisyphus.getclr.reset}")
sys.exit()
@@ -256,7 +256,7 @@ def start(ebuild=False, gfx_ui=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(
f"{sisyphus.getclr.bright_red}\nSource package(s) found in the mix!{sisyphus.getclr.reset}")
@@ -273,7 +273,7 @@ def start(ebuild=False, gfx_ui=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(
f"{sisyphus.getclr.bright_red}\nSource package(s) found in the mix!{sisyphus.getclr.reset}")