=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/client.c,v retrieving revision 1.62 retrieving revision 1.63 diff -c -r1.62 -r1.63 *** src/usr.bin/tmux/client.c 2013/03/24 09:54:10 1.62 --- src/usr.bin/tmux/client.c 2013/03/25 10:03:24 1.63 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.62 2013/03/24 09:54:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.63 2013/03/25 10:03:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 292,299 **** ppid = getppid(); if (client_exittype == MSG_DETACHKILL && ppid > 1) kill(ppid, SIGHUP); ! } else if (flags & IDENTIFY_TERMIOS) tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio); setblocking(STDIN_FILENO, 1); return (client_exitval); } --- 292,307 ---- ppid = getppid(); if (client_exittype == MSG_DETACHKILL && ppid > 1) kill(ppid, SIGHUP); ! } else if (flags & IDENTIFY_TERMIOS) { ! if (flags & IDENTIFY_CONTROL) { ! if (client_exitreason != CLIENT_EXIT_NONE) ! printf("%%exit %s\n", client_exit_message()); ! else ! printf("%%exit\n"); ! printf("\033\\"); ! } tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio); + } setblocking(STDIN_FILENO, 1); return (client_exitval); }