Report error if creating socket fails with -D.

pull/3160/head
nicm 2022-03-28 07:40:57 +00:00 committed by Nicholas Marriott
parent 1c69a91c25
commit 880abd0ec2
1 changed files with 4 additions and 2 deletions

View File

@ -236,8 +236,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);