=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server.c,v retrieving revision 1.192 retrieving revision 1.193 diff -c -r1.192 -r1.193 *** src/usr.bin/tmux/server.c 2020/05/16 16:30:59 1.192 --- src/usr.bin/tmux/server.c 2020/06/01 09:43:01 1.193 *************** *** 1,4 **** ! /* $OpenBSD: server.c,v 1.192 2020/05/16 16:30:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: server.c,v 1.193 2020/06/01 09:43:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 295,303 **** if (c->flags & CLIENT_SUSPENDED) server_client_lost(c); else { ! if (c->flags & CLIENT_ATTACHED) ! notify_client("client-detached", c); ! proc_send(c->peer, MSG_SHUTDOWN, -1, NULL, 0); } c->session = NULL; } --- 295,302 ---- if (c->flags & CLIENT_SUSPENDED) server_client_lost(c); else { ! c->flags |= CLIENT_EXIT; ! c->exit_type = CLIENT_EXIT_SHUTDOWN; } c->session = NULL; }