#include "cgroup-util.h"
#include "spawn-polkit-agent.h"
#include "verbs.h"
+#include "process-util.h"
+#include "terminal-util.h"
+#include "signal-util.h"
static char **arg_property = NULL;
static bool arg_all = false;
assert(bus);
- r = check_inhibitors(bus, "shutdown", "poweroff");
+ r = check_inhibitors(bus, "poweroff", "shutdown");
if (r < 0)
return r;
assert(bus);
- r = check_inhibitors(bus, "shutdown", "reboot");
+ r = check_inhibitors(bus, "reboot", "shutdown");
if (r < 0)
return r;
assert(bus);
- r = check_inhibitors(bus, "sleep", "suspend");
+ r = check_inhibitors(bus, "suspend", "sleep");
if (r < 0)
return r;
assert(bus);
- r = check_inhibitors(bus, "sleep", "hibernate");
+ r = check_inhibitors(bus, "hibernate", "sleep");
if (r < 0)
return r;
assert(bus);
- r = check_inhibitors(bus, "sleep", "hybrid-sleep");
+ r = check_inhibitors(bus, "hybrid-sleep", "sleep");
if (r < 0)
return r;