Report error if creating socket fails with -D.

This commit is contained in:
nicm 2022-03-28 07:40:57 +00:00
parent 422fcd294a
commit 207b1bc385

View File

@ -230,8 +230,10 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base,
if (c != NULL) {
c->exit_message = cause;
c->flags |= CLIENT_EXIT;
} else
free(cause);
} else {
fprintf(stderr, "%s\n", cause);
exit(1);
}
}
evtimer_set(&server_ev_tidy, server_tidy_event, NULL);