summaryrefslogtreecommitdiff
path: root/src/login/logind-inhibit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-08 19:02:25 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-08 19:02:25 +0200
commitd889a2069a87e4617b32ddbdeace5a53a12c699d (patch)
tree7b83f31c7e3f02fda73d4e208598bd93713f9685 /src/login/logind-inhibit.c
parent6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16 (diff)
logind: implement suspend/hibernate calls with inhibition logic
Diffstat (limited to 'src/login/logind-inhibit.c')
-rw-r--r--src/login/logind-inhibit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c
index 2007ec79e4..512fc0716b 100644
--- a/src/login/logind-inhibit.c
+++ b/src/login/logind-inhibit.c
@@ -163,7 +163,7 @@ int inhibitor_start(Inhibitor *i) {
i->started = true;
- manager_send_changed(i->manager, "Inhibited\0");
+ manager_send_changed(i->manager, i->mode == INHIBIT_BLOCK ? "BlockInhibited\0" : "DelayInhibited\0");
return 0;
}
@@ -182,7 +182,7 @@ int inhibitor_stop(Inhibitor *i) {
i->started = false;
- manager_send_changed(i->manager, "Inhibited\0");
+ manager_send_changed(i->manager, i->mode == INHIBIT_BLOCK ? "BlockInhibited\0" : "DelayInhibited\0");
return 0;
}