summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-07-12 09:07:52 +0000
committernicm <nicm@openbsd.org>2017-07-12 09:07:52 +0000
commitf7772d13f1691ba12beb3695935166d3ca29fd4a (patch)
treeda8e2e454f9eb1029adeba246096628f89843285 /usr.bin/tmux/server-client.c
parentCompute the level of contention only once. (diff)
downloadwireguard-openbsd-f7772d13f1691ba12beb3695935166d3ca29fd4a.tar.xz
wireguard-openbsd-f7772d13f1691ba12beb3695935166d3ca29fd4a.zip
proc_send_s now seems unnecessary.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 7b7ef2bc95a..f303035f577 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.239 2017/06/13 07:12:33 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.240 2017/07/12 09:07:52 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -371,7 +371,7 @@ server_client_detach(struct client *c, enum msgtype msgtype)
c->flags |= CLIENT_DETACHING;
notify_client("client-detached", c);
- proc_send_s(c->peer, msgtype, s->name);
+ proc_send(c->peer, msgtype, -1, s->name, strlen(s->name) + 1);
}
/* Execute command to replace a client. */
@@ -1721,7 +1721,7 @@ server_client_dispatch_shell(struct client *c)
shell = options_get_string(global_s_options, "default-shell");
if (*shell == '\0' || areshell(shell))
shell = _PATH_BSHELL;
- proc_send_s(c->peer, MSG_SHELL, shell);
+ proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1);
proc_kill_peer(c->peer);
}