bugfix: avoid possible segfault if notify_stop_main_thread is called before thread was launched (thanks Jan for reporting this)
This commit is contained in:
parent
38912b36da
commit
d8861f877e
@ -1,3 +1,11 @@
|
||||
2009-01-22 Frederic Culot <frederic@culot.org>
|
||||
|
||||
* src/notify.c (notify_stop_main_thread): avoid a possible
|
||||
segfault if this function is called before the thread was launched
|
||||
(thanks Jan for reporting this)
|
||||
|
||||
* configure.ac: switch to 2.5_beta
|
||||
|
||||
2009-01-05 Frederic Culot <frederic@culot.org>
|
||||
|
||||
* src/custom.c (custom_general_config, print_general_options):
|
||||
|
@ -1,10 +1,10 @@
|
||||
# $calcurse: configure.ac,v 1.28 2008/12/28 13:13:59 culot Exp $
|
||||
# $calcurse: configure.ac,v 1.29 2009/01/22 18:11:56 culot Exp $
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Init
|
||||
#-------------------------------------------------------------------------------
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(calcurse, 2.4, frederic@culot.org)
|
||||
AC_INIT(calcurse, 2.5_beta, frederic@culot.org)
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_GNU_GETTEXT([external])
|
||||
AC_CONFIG_SRCDIR([src/calcurse.c])
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $calcurse: notify.c,v 1.35 2009/01/03 21:32:11 culot Exp $ */
|
||||
/* $calcurse: notify.c,v 1.36 2009/01/22 18:11:57 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -116,6 +116,7 @@ notify_init_bar (void)
|
||||
void
|
||||
notify_stop_main_thread (void)
|
||||
{
|
||||
if (notify_t_main)
|
||||
pthread_cancel (notify_t_main);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user