summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorMicah Nordland <micah@rehack.me>2016-01-26 13:16:32 -0500
committerMicah Nordland <micah@rehack.me>2016-01-26 13:16:32 -0500
commit46bac13444fb0715d4a8980aa7235b8dd85c493d (patch)
tree5ce186b4c485e2d152cd2d9b874b4f921f3cf452 /alot
parent75061e84d5b4d92bbadb45f5547883dace2c8dd1 (diff)
Added function docstring to UI.handle_signal
Diffstat (limited to 'alot')
-rw-r--r--alot/ui.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 54697297..8dff2839 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -641,6 +641,15 @@ class UI(object):
d.addCallback(call_posthook)
return d
def handle_signal(self, signum, frame):
+ """
+ handles UNIX signals
+
+ This function currently just handles SIGUSR1. It could be extended to
+ handle more
+
+ :param signum: The signal number (see man 7 signal)
+ :param frame: The execution frame (https://docs.python.org/2/reference/datamodel.html#frame-objects)
+ """
self.current_buffer.rebuild()
self.update()