diff options
author | waker <wakeroid@gmail.com> | 2010-11-09 20:51:15 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-11-09 20:51:15 +0100 |
commit | a7487bd53a2798ab5ae7f03fb236c592f54b8444 (patch) | |
tree | ea3afedf1561c1a8d0367153e14e9004f5c59a7e /main.c | |
parent | 8988591f4add0e3b87f5c2259db8438d6c234343 (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
@@ -428,8 +428,8 @@ player_mainloop (void) { } } +#if 0 static int sigterm_handled = 0; - void atexit_handler (void) { fprintf (stderr, "atexit_handler\n"); @@ -448,6 +448,7 @@ sigterm_handler (int sig) { fprintf (stderr, "bye.\n"); exit (0); } +#endif #ifdef __linux__ void @@ -705,8 +706,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 (); @@ -753,7 +756,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; } |