Better failure print handling.

This commit is contained in:
Ian Gulliver
2016-03-04 19:59:30 -08:00
parent 7f0e588e9e
commit c1b8e5b66b

View File

@@ -277,8 +277,8 @@ static void conn_check(struct conn *conn) {
if (error == EINPROGRESS) {
return;
}
fprintf(stderr, "\nConnection failed: %s\n", strerror(error));
exit(EXIT_FAILURE);
fprintf(stderr, "Connection failed: %s\n", strerror(error));
shutdown_flag = true;
}
static void conn_cycle() {