Basic lock mechanism implemented to avoid having two calcurse instances running at the same time.

This commit is contained in:
Frederic Culot
2009-06-21 18:16:21 +00:00
parent bff0d973a4
commit 627fd8a8aa
7 changed files with 70 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
/* $calcurse: calcurse.c,v 1.78 2009/01/24 18:45:35 culot Exp $ */
/* $calcurse: calcurse.c,v 1.79 2009/06/21 18:16:22 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -88,7 +88,9 @@ main (int argc, char **argv)
non_interactive = parse_args (argc, argv, &conf);
if (non_interactive)
exit_calcurse (EXIT_SUCCESS);
else
io_set_lock ();
/* Begin of interactive mode with ncurses interface. */
sigs_init (&sigact); /* signal handling init */
initscr (); /* start the curses mode */