summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-24 04:56:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-24 04:56:44 +0100
commitaf9792ac7f39354f80e9006c42c2400c5e41c447 (patch)
tree07fb7a3aa9ebf72f1f4f1654d778538bfd00afd3 /src/login/logind.h
parenta4cc3e5ccc0a3033d764a9eb3ae5ee90db560682 (diff)
logind: only allow one shutdown/sleep action to be queued at the same time
This should make sure that closing the lid while shutting down won't suspend the machine but will simply cause the shutdown to complete.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 816635dcfc..fe6ea0fd34 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -100,7 +100,9 @@ struct Manager {
usec_t inhibit_delay_max;
- int idle_action_fd;
+ char* action_job;
+
+ int idle_action_fd; /* the timer_fd */
usec_t idle_action_usec;
usec_t idle_action_not_before_usec;
HandleAction idle_action;