diff options
author | Frederic Culot <calcurse@culot.org> | 2009-06-21 18:16:21 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-06-21 18:16:21 +0000 |
commit | 627fd8a8aa380c3343800012c58ff0431c566614 (patch) | |
tree | 3209af506b43c59ef558eda23680ec6c32fdb017 /src/calcurse.c | |
parent | bff0d973a426a5c9b55e824ab2a11560a2245938 (diff) | |
download | calcurse-627fd8a8aa380c3343800012c58ff0431c566614.zip |
Basic lock mechanism implemented to avoid having two calcurse instances running at the same time.
Diffstat (limited to 'src/calcurse.c')
-rwxr-xr-x | src/calcurse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 552cfb4..30beffb 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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 */ |