summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-11-11 12:29:48 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-11-11 12:29:48 +0100
commit14b6ae79a25106501a30693889b1c03abd56c8c1 (patch)
treef33f550d29c781ab523c895df6338c420253964c /src/notify.c
parent6f01c7af972dbf4698c63b707b225469b9405e47 (diff)
parent3aefd00f6aebad7c50210e68650cb8c42e0835cd (diff)
downloadcalcurse-14b6ae79a25106501a30693889b1c03abd56c8c1.zip
Merge branch 'maint'
Conflicts: src/calcurse.h src/io.c
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/notify.c b/src/notify.c
index ae9bcbe..6529087 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -190,7 +190,10 @@ void
notify_stop_main_thread (void)
{
if (notify_t_main)
- pthread_cancel (notify_t_main);
+ {
+ pthread_cancel (notify_t_main);
+ pthread_join (notify_t_main, NULL);
+ }
}
/*