Need to remove lock only if interactive mode was launched before.
This commit is contained in:
parent
1a1dda24c3
commit
90589eab17
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
* src/io.c: missing 'T' letter added in DURATION field for ical
|
* src/io.c: missing 'T' letter added in DURATION field for ical
|
||||||
export (thanks cuz for reporting this)
|
export (thanks cuz for reporting this)
|
||||||
|
|
||||||
|
* src/utils.c (exit_calcurse): remove lock only if interactive
|
||||||
|
mode was launched
|
||||||
|
|
||||||
2009-06-22 Frederic Culot <frederic@culot.org>
|
2009-06-22 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
|
12
src/utils.c
12
src/utils.c
@ -1,4 +1,4 @@
|
|||||||
/* $calcurse: utils.c,v 1.70 2009/06/21 18:16:23 culot Exp $ */
|
/* $calcurse: utils.c,v 1.71 2009/06/23 08:52:07 culot Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calcurse - text-based organizer
|
* Calcurse - text-based organizer
|
||||||
@ -51,6 +51,8 @@
|
|||||||
void
|
void
|
||||||
exit_calcurse (int status)
|
exit_calcurse (int status)
|
||||||
{
|
{
|
||||||
|
int remove_lock;
|
||||||
|
|
||||||
if (ui_mode == UI_CURSES)
|
if (ui_mode == UI_CURSES)
|
||||||
{
|
{
|
||||||
notify_stop_main_thread ();
|
notify_stop_main_thread ();
|
||||||
@ -58,7 +60,11 @@ exit_calcurse (int status)
|
|||||||
refresh ();
|
refresh ();
|
||||||
endwin ();
|
endwin ();
|
||||||
ui_mode = UI_CMDLINE;
|
ui_mode = UI_CMDLINE;
|
||||||
|
remove_lock = 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
remove_lock = 0;
|
||||||
|
|
||||||
calendar_stop_date_thread ();
|
calendar_stop_date_thread ();
|
||||||
io_stop_psave_thread ();
|
io_stop_psave_thread ();
|
||||||
day_free_list ();
|
day_free_list ();
|
||||||
@ -74,7 +80,9 @@ exit_calcurse (int status)
|
|||||||
notify_free_app ();
|
notify_free_app ();
|
||||||
keys_free ();
|
keys_free ();
|
||||||
mem_stats ();
|
mem_stats ();
|
||||||
io_unset_lock ();
|
if (remove_lock)
|
||||||
|
io_unset_lock ();
|
||||||
|
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user