diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -364,6 +364,7 @@ static int sigterm_handled = 0; void atexit_handler (void) { + fprintf (stderr, "atexit_handler\n"); if (!sigterm_handled) { fprintf (stderr, "handling atexit.\n"); pl_save (defpl); @@ -528,7 +529,7 @@ main (int argc, char *argv[]) { messagepump_init (); // required to push messages while handling commandline plug_load_all (); // required to add files to playlist from commandline - //atexit (atexit_handler); // doesn't help on X11 server shutdown anyway + atexit (atexit_handler); // helps to save in simple cases, like xkill // execute server commands in local context int noloadpl = 0; |