summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index a9d47812..95dbaa71 100644
--- a/main.c
+++ b/main.c
@@ -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;