#endif
static char prompt_str[512] = "";
+static int CONNECTED = 0;
typedef struct {
char name[128];
{
if (sig);
+ if (!CONNECTED) {
+ fprintf(stdout, "Interrupted.\n");
+ exit(1);
+ }
+
WARN_STOP = 1;
signal(SIGINT, handle_SIGINT);
connect:
+ CONNECTED = 0;
+
while (--loops > 0) {
memset(&handle, 0, sizeof(handle));
if (esl_connect(&handle, profile->host, profile->port, profile->user, profile->pass)) {
esl_log(ESL_LOG_INFO, "Retrying\n");
}
} else {
+ CONNECTED = 1;
+
if (temp_log < 0 ) {
esl_global_set_default_logger(profile->debug);
} else {