summaryrefslogtreecommitdiff
path: root/src/login/logind-user.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-06 18:14:11 +0200
committerSven Eden <sven.eden@prydeworx.com>2018-10-29 10:18:33 +0100
commitccad78e82eb9ee47bda89f662318f4cbed53b904 (patch)
tree910d7794c780586581a13c4a816f1926f3cb9745 /src/login/logind-user.h
parent74aa0d64f922ae65cdea1a62059e4c2d5d7c51f6 (diff)
logind: save/restore User object's "stopping" field during restarts
Whether we are stopping or not is highly relevant, hence don't forget it across restarts. (cherry picked from commit d865bc024bf28c17120d7322a81e9a99997a59f6)
Diffstat (limited to 'src/login/logind-user.h')
-rw-r--r--src/login/logind-user.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/logind-user.h b/src/login/logind-user.h
index afb6f4b1a..9c6dcf074 100644
--- a/src/login/logind-user.h
+++ b/src/login/logind-user.h
@@ -38,8 +38,9 @@ struct User {
dual_timestamp timestamp;
bool in_gc_queue:1;
- bool started:1;
- bool stopping:1;
+
+ bool started:1; /* Whenever the user being started, has been started or is being stopped again. */
+ bool stopping:1; /* Whenever the user is being stopped or has been stopped. */
LIST_HEAD(Session, sessions);
LIST_FIELDS(User, gc_queue);