diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-03-25 06:14:43 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-03-25 06:14:43 +0000 |
commit | 6d50cb8241bda95c45d2bb08533ae3335dbd0e9d (patch) | |
tree | db7e52afc033783981b6bd139a516448147a2319 /usr.bin/tmux/server.c | |
parent | cad8a900db360464f1e978d656478389bd7c13fd (diff) |
Fix exit message if creating socket fails.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 8440a25ba08..12e43481f6c 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.198 2021/06/10 07:45:43 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.199 2022/03/25 06:14:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -228,10 +228,10 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base, if (cause != NULL) { if (c != NULL) { - cmdq_append(c, cmdq_get_error(cause)); + c->exit_message = cause; c->flags |= CLIENT_EXIT; - } - free(cause); + } else + free(cause); } evtimer_set(&server_ev_tidy, server_tidy_event, NULL); |