+ char **env_block;
+
+ if (arm_reboot_watchdog && arg_shutdown_watchdog > 0) {
+ char e[32];
+
+ /* If we reboot let's set the shutdown
+ * watchdog and tell the shutdown binary to
+ * repeatedly ping it */
+ watchdog_set_timeout(&arg_shutdown_watchdog);
+ watchdog_close(false);
+
+ /* Tell the binary how often to ping */
+ snprintf(e, sizeof(e), "WATCHDOG_USEC=%llu", (unsigned long long) arg_shutdown_watchdog);
+ char_array_0(e);
+
+ env_block = strv_append(environ, e);
+ } else {
+ env_block = strv_copy(environ);
+ watchdog_close(true);
+ }