=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/talk/io.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/talk/io.c 2001/09/05 00:29:20 1.10 --- src/usr.bin/talk/io.c 2002/06/21 06:16:44 1.11 *************** *** 1,4 **** ! /* $OpenBSD: io.c,v 1.10 2001/09/05 00:29:20 deraadt Exp $ */ /* $NetBSD: io.c,v 1.4 1994/12/09 02:14:20 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: io.c,v 1.11 2002/06/21 06:16:44 millert Exp $ */ /* $NetBSD: io.c,v 1.4 1994/12/09 02:14:20 jtc Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: io.c,v 1.10 2001/09/05 00:29:20 deraadt Exp $"; #endif /* not lint */ /* --- 38,44 ---- #if 0 static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: io.c,v 1.11 2002/06/21 06:16:44 millert Exp $"; #endif /* not lint */ /* *************** *** 56,61 **** --- 56,63 ---- #define A_LONG_TIME 10000000 + volatile sig_atomic_t gotwinch = 0; + /* * The routine to do the actual talking */ *************** *** 94,99 **** --- 96,105 ---- wait.tv_sec = A_LONG_TIME; wait.tv_usec = 0; nb = select(maxfd + 1, &read_set, 0, 0, &wait); + if (gotwinch) { + resize_display(); + gotwinch = 0; + } if (nb <= 0) { if (errno == EINTR) { read_set = read_template;