diff options
author | waker <wakeroid@gmail.com> | 2010-11-09 20:51:15 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-11-13 19:20:06 +0100 |
commit | 607479be3172aed4c5f906dcb326089e1d5538e6 (patch) | |
tree | b68fa027cc8e5138b51497cc9e7c4891e6e26c7c /main.c | |
parent | 6691bdb5619d20d9f4d230e857d51b127b718b1f (diff) |
disabled atexit and sigterm handlers (were causing playlist corruption)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -431,8 +431,8 @@ player_mainloop (void) { } } +#if 0 static int sigterm_handled = 0; - void atexit_handler (void) { fprintf (stderr, "atexit_handler\n"); @@ -451,6 +451,7 @@ sigterm_handler (int sig) { fprintf (stderr, "bye.\n"); exit (0); } +#endif #ifdef __linux__ void @@ -764,8 +765,10 @@ main (int argc, char *argv[]) { if (server_start () < 0) { exit (-1); } +#if 0 signal (SIGTERM, sigterm_handler); atexit (atexit_handler); // helps to save in simple cases +#endif // start all subsystems plug_trigger_event_playlistchanged (); @@ -813,7 +816,9 @@ main (int argc, char *argv[]) { conf_free (); messagepump_free (); plug_cleanup (); +#if 0 sigterm_handled = 1; +#endif fprintf (stderr, "hej-hej!\n"); return 0; } |