From af9792ac7f39354f80e9006c42c2400c5e41c447 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 24 Jan 2013 04:56:44 +0100 Subject: 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. --- src/login/logind.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/login/logind.h') 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; -- cgit v1.2.3-54-g00ecf