chiark / gitweb /
Make sure that keys are properly removed from hashmap
[elogind.git] / src / core / shutdown.c
index 9189cfb1ade3eed754249518501bb374be09c075..7ef671ad0f56f854225d6420b2d5ca39decbe95f 100644 (file)
@@ -222,7 +222,7 @@ static int pivot_to_new_root(void) {
 int main(int argc, char *argv[]) {
         bool need_umount = true, need_swapoff = true, need_loop_detach = true, need_dm_detach = true;
         bool in_container, use_watchdog = false;
-        _cleanup_free_ char *line = NULL, *cgroup = NULL;
+        _cleanup_free_ char *cgroup = NULL;
         char *arguments[3];
         unsigned retries;
         int cmd, r;
@@ -368,7 +368,7 @@ int main(int argc, char *argv[]) {
         arguments[0] = NULL;
         arguments[1] = arg_verb;
         arguments[2] = NULL;
-        execute_directory(SYSTEM_SHUTDOWN_PATH, NULL, arguments);
+        execute_directory(SYSTEM_SHUTDOWN_PATH, NULL, DEFAULT_TIMEOUT_USEC, arguments);
 
         if (!in_container && !in_initrd() &&
             access("/run/initramfs/shutdown", X_OK) == 0) {