version 1.10, 2001/09/05 00:29:20 |
version 1.11, 2002/06/21 06:16:44 |
|
|
|
|
#define A_LONG_TIME 10000000 |
#define A_LONG_TIME 10000000 |
|
|
|
volatile sig_atomic_t gotwinch = 0; |
|
|
/* |
/* |
* The routine to do the actual talking |
* The routine to do the actual talking |
*/ |
*/ |
|
|
wait.tv_sec = A_LONG_TIME; |
wait.tv_sec = A_LONG_TIME; |
wait.tv_usec = 0; |
wait.tv_usec = 0; |
nb = select(maxfd + 1, &read_set, 0, 0, &wait); |
nb = select(maxfd + 1, &read_set, 0, 0, &wait); |
|
if (gotwinch) { |
|
resize_display(); |
|
gotwinch = 0; |
|
} |
if (nb <= 0) { |
if (nb <= 0) { |
if (errno == EINTR) { |
if (errno == EINTR) { |
read_set = read_template; |
read_set = read_template; |