A similar thing happens when you switch to a second user, and then switch back to the original user. In this case the greeter actually is sent SIGTERM, but the display server is stopped soon after, before the cleanup has finished.
lightdm.log says: [+43.64s] DEBUG: Seat seat0: Returning to existing user session userone [+43.64s] DEBUG: Unlocking login1 session c8 [+43.64s] DEBUG: Activating VT 7 [+43.64s] WARNING: Error using VT_WAITACTIVE 7 on /dev/console: Interrupted system call [+43.64s] DEBUG: Seat seat0: Stopping greeter [+43.64s] DEBUG: Session pid=4468: Sending SIGTERM [+43.64s] DEBUG: Activating login1 session c8 [+43.64s] DEBUG: Session pid=4993: Exited with return value 0 [+43.64s] DEBUG: Seat seat0: Session stopped [+43.66s] DEBUG: Session pid=4468: Exited with return value 0 [+43.66s] DEBUG: Seat seat0: Session stopped [+43.66s] DEBUG: Seat seat0: Stopping display server, no sessions require it [+43.66s] DEBUG: Sending signal 15 to process 4463 [+43.81s] DEBUG: Seat seat0 changes active session to c8 [+43.92s] DEBUG: Process 4463 exited with return value 0 [+43.92s] DEBUG: DisplayServer x-1: X server stopped [+43.92s] DEBUG: Releasing VT 8 [+43.92s] DEBUG: DisplayServer x-1: Removing X server authority /var/run/lightdm/root/:1 [+43.92s] DEBUG: Seat seat0: Display server stopped and x-1-greeter.log says: [+22.94s] DEBUG: unity-greeter.vala:605: Got a SIGTERM [+22.94s] DEBUG: settings-daemon.vala:78: Failed to acquire name org.gnome.SessionManager [+22.94s] DEBUG: settings-daemon.vala:105: Failed to acquire name org.gnome.ScreenSaver [+22.94s] DEBUG: unity-greeter.vala:135: Failed to acquire name com.canonical.Unity g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting. upstart: indicator-sound main process ended, respawning upstart: indicator-keyboard main process ended, respawning upstart: indicator-power main process ended, respawning [...] Note the SIGTERM handler is hit, but "Cleaning up" after the end of the main loop is not. After that second display server has been shut down, its session upstart and some indicator processes are still running. ** Summary changed: - please stop greeter gracefully when stopping lightdm + please stop greeter gracefully when stopping a display server -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1410584 Title: please stop greeter gracefully when stopping a display server To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1410584/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs