mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03:00
commit
5de5dc30df
@ -64,7 +64,9 @@ int manager_handle_action(
|
||||
|
||||
/* If the key handling is turned off, don't do anything */
|
||||
if (handle == HANDLE_IGNORE) {
|
||||
log_debug("Refusing operation, as it is turned off.");
|
||||
log_debug("Handling of %s (%s) is disabled, taking no action.",
|
||||
inhibit_key == 0 ? "idle timeout" : inhibit_what_to_string(inhibit_key),
|
||||
is_edge ? "edge" : "level");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -3299,6 +3299,7 @@ static int method_inhibit(sd_bus_message *message, void *userdata, sd_bus_error
|
||||
r = inhibitor_start(i);
|
||||
if (r < 0)
|
||||
return r;
|
||||
TAKE_PTR(i);
|
||||
|
||||
return sd_bus_reply_method_return(message, "h", fifo_fd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user