diff options
author | nicm <nicm> | 2022-03-28 07:40:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-03-28 07:40:57 +0000 |
commit | 207b1bc385480cf453f2994a12f65706977b6c0f (patch) | |
tree | 5cc75dfd4664f75f82b9f2a9fa951679d48b9a76 /server.c | |
parent | 422fcd294a6de4ba940144ede9ebb86a9ab6e41f (diff) | |
download | rtmux-207b1bc385480cf453f2994a12f65706977b6c0f.tar.gz rtmux-207b1bc385480cf453f2994a12f65706977b6c0f.tar.bz2 rtmux-207b1bc385480cf453f2994a12f65706977b6c0f.zip |
Report error if creating socket fails with -D.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |