aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_notify.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main_notify.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main_notify.c b/src/main_notify.c
index d7f429f0f..4e5b786a2 100644
--- a/src/main_notify.c
+++ b/src/main_notify.c
@@ -68,6 +68,14 @@ void init_main_notify(void)
notify_init(&main_notify);
}
+void deinit_main_notify(void)
+{
+ notify_deinit(&main_notify);
+ deregisterIO(&main_notify_IO);
+ xclose(main_pipe[0]);
+ xclose(main_pipe[1]);
+}
+
static int wakeup_via_pipe(void)
{
int ret = pthread_mutex_trylock(&select_mutex);