=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-detach-client.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/tmux/cmd-detach-client.c 2015/04/24 23:17:11 1.20 --- src/usr.bin/tmux/cmd-detach-client.c 2015/10/27 13:23:24 1.21 *************** *** 1,4 **** ! /* $OpenBSD: cmd-detach-client.c,v 1.20 2015/04/24 23:17:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-detach-client.c,v 1.21 2015/10/27 13:23:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 57,63 **** return (CMD_RETURN_ERROR); tty_stop_tty(&c->tty); c->flags |= CLIENT_SUSPENDED; ! server_write_client(c, MSG_SUSPEND, NULL, 0); return (CMD_RETURN_NORMAL); } --- 57,63 ---- return (CMD_RETURN_ERROR); tty_stop_tty(&c->tty); c->flags |= CLIENT_SUSPENDED; ! proc_send(c->peer, MSG_SUSPEND, -1, NULL, 0); return (CMD_RETURN_NORMAL); } *************** *** 74,82 **** TAILQ_FOREACH(cloop, &clients, entry) { if (cloop->session != s) continue; ! server_write_client(cloop, msgtype, ! cloop->session->name, ! strlen(cloop->session->name) + 1); } return (CMD_RETURN_STOP); } --- 74,80 ---- TAILQ_FOREACH(cloop, &clients, entry) { if (cloop->session != s) continue; ! proc_send_s(cloop->peer, msgtype, cloop->session->name); } return (CMD_RETURN_STOP); } *************** *** 89,102 **** TAILQ_FOREACH(cloop, &clients, entry) { if (cloop->session == NULL || cloop == c) continue; ! server_write_client(cloop, msgtype, ! cloop->session->name, ! strlen(cloop->session->name) + 1); } return (CMD_RETURN_NORMAL); } ! server_write_client(c, msgtype, c->session->name, ! strlen(c->session->name) + 1); return (CMD_RETURN_STOP); } --- 87,97 ---- TAILQ_FOREACH(cloop, &clients, entry) { if (cloop->session == NULL || cloop == c) continue; ! proc_send_s(cloop->peer, msgtype, cloop->session->name); } return (CMD_RETURN_NORMAL); } ! proc_send_s(c->peer, msgtype, c->session->name); return (CMD_RETURN_STOP); }