#define PLY_MAX_COMMAND_LINE_SIZE 4097
#endif
+
+#ifndef PLY_PING_TIMEOUT
+#define PLY_PING_TIMEOUT 30.0
+#endif
+
+
#define KEY_CTRL_C ('\100' ^ 'C')
typedef struct
char *keys;
} key_answer_state_t;
+static void
+on_ping_timeout (state_t *state)
+{
+ ply_trace ("ping: timed out waiting for plymouthd");
+ ply_event_loop_exit (state->loop, 1);
+}
+
static char **
split_string (const char *command,
const char delimiter)
on_success,
(ply_boot_client_response_handler_t)
on_failure, &state);
+ ply_event_loop_watch_for_timeout (state.loop, PLY_PING_TIMEOUT,
+ (ply_event_loop_timeout_handler_t)
+ on_ping_timeout, &state);
} else if (should_check_for_active_vt) {
ply_boot_client_ask_daemon_has_active_vt (state.client,
(ply_boot_client_response_handler_t)