From a3773dd5125b9912c6a1823d85d122398462fb4d Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Mon, 3 Jun 2024 14:22:48 +0530 Subject: [PATCH] :books: docs(signal_handler): documentation add --- snigdhaos-kernel-manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snigdhaos-kernel-manager.py b/snigdhaos-kernel-manager.py index 3f8d0bf..0d4a1e2 100644 --- a/snigdhaos-kernel-manager.py +++ b/snigdhaos-kernel-manager.py @@ -76,7 +76,9 @@ class Main(Gtk.Application): # if the file specified by pid_file exists, removes it from the file system os.remove(pid_file) +# sig represents the signal number, and frame represents the interrupted stack frame at the time the signal was received def signal_handler(sig, frame): + # used in GTK (GIMP Toolkit) applications to exit the main event loop and terminate the program Gtk.main_quit(0) if __name__ == "__main__":