|
Lines 346-353
Link Here
|
| 346 |
if (session_closed && !channel_still_open() && |
346 |
if (session_closed && !channel_still_open() && |
| 347 |
!packet_have_data_to_write()) { |
347 |
!packet_have_data_to_write()) { |
| 348 |
/* clear mask since we did not call select() */ |
348 |
/* clear mask since we did not call select() */ |
| 349 |
memset(*readsetp, 0, *maxfdp); |
349 |
channel_zero_fd_set(*readsetp, *maxfdp); |
| 350 |
memset(*writesetp, 0, *maxfdp); |
350 |
channel_zero_fd_set(*writesetp, *maxfdp); |
| 351 |
return; |
351 |
return; |
| 352 |
} else { |
352 |
} else { |
| 353 |
FD_SET(connection_in, *readsetp); |
353 |
FD_SET(connection_in, *readsetp); |
|
Lines 375-382
Link Here
|
| 375 |
* We have to return, because the mainloop checks for the flags |
375 |
* We have to return, because the mainloop checks for the flags |
| 376 |
* set by the signal handlers. |
376 |
* set by the signal handlers. |
| 377 |
*/ |
377 |
*/ |
| 378 |
memset(*readsetp, 0, *maxfdp); |
378 |
channel_zero_fd_set(*readsetp, *maxfdp); |
| 379 |
memset(*writesetp, 0, *maxfdp); |
379 |
channel_zero_fd_set(*writesetp, *maxfdp); |
| 380 |
|
380 |
|
| 381 |
if (errno == EINTR) |
381 |
if (errno == EINTR) |
| 382 |
return; |
382 |
return; |