Skip to content

session-worker: kill user sessions when stopping gdm service

Ray Strode requested to merge wip/kill-user-session into master

At the moment the session worker exits as soon as it gets SIGTERM. That means it may fail to stop the user session (which only happens in the orderly shutdown path).

This commit sets up a SIGTERM handler that integrates with and
quits the main loop after the session is started.

It still retains the _exit-on-SIGTERM behavior before the session
is started, to ensure a stuck pam module doesn't prevent the
process from dying.

Some small changes to commit by Ray Strode.

Closes #400

Merge request reports