Better failure print handling.
This commit is contained in:
@@ -277,8 +277,8 @@ static void conn_check(struct conn *conn) {
|
|||||||
if (error == EINPROGRESS) {
|
if (error == EINPROGRESS) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\nConnection failed: %s\n", strerror(error));
|
fprintf(stderr, "Connection failed: %s\n", strerror(error));
|
||||||
exit(EXIT_FAILURE);
|
shutdown_flag = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void conn_cycle() {
|
static void conn_cycle() {
|
||||||
|
|||||||
Reference in New Issue
Block a user