=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/client.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/tmux/client.c 2009/10/21 21:11:55 1.26 --- src/usr.bin/tmux/client.c 2009/10/26 21:38:18 1.27 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.26 2009/10/21 21:11:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.27 2009/10/26 21:38:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 185,201 **** client_write_server(MSG_EXITING, NULL, 0); } if (sigchld) { - waitpid(WAIT_ANY, NULL, WNOHANG); sigchld = 0; } if (sigwinch) { client_write_server(MSG_RESIZE, NULL, 0); ! sigwinch = 0; } if (sigcont) { siginit(); client_write_server(MSG_WAKEUP, NULL, 0); ! sigcont = 0; } pfd.fd = client_ibuf.fd; --- 185,204 ---- client_write_server(MSG_EXITING, NULL, 0); } if (sigchld) { sigchld = 0; + waitpid(WAIT_ANY, NULL, WNOHANG); + continue; } if (sigwinch) { + sigwinch = 0; client_write_server(MSG_RESIZE, NULL, 0); ! continue; } if (sigcont) { + sigcont = 0; siginit(); client_write_server(MSG_WAKEUP, NULL, 0); ! continue; } pfd.fd = client_ibuf.fd;