From 607479be3172aed4c5f906dcb326089e1d5538e6 Mon Sep 17 00:00:00 2001 From: waker Date: Tue, 9 Nov 2010 20:51:15 +0100 Subject: disabled atexit and sigterm handlers (were causing playlist corruption) --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 6e57d013..8f316a71 100644 --- a/main.c +++ b/main.c @@ -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; } -- cgit v1.2.3