Delay user input whereever appropriate.
This commit is contained in:
parent
4761efdb43
commit
9e85a5e6f2
1 changed files with 1 additions and 0 deletions
|
@ -307,6 +307,7 @@ io_loop(int mode)
|
||||||
server_reply = -1;
|
server_reply = -1;
|
||||||
while (mode || server_reply < 0)
|
while (mode || server_reply < 0)
|
||||||
{
|
{
|
||||||
|
FD_ZERO(&select_fds);
|
||||||
FD_SET(server_fd, &select_fds);
|
FD_SET(server_fd, &select_fds);
|
||||||
if (mode)
|
if (mode)
|
||||||
FD_SET(0, &select_fds);
|
FD_SET(0, &select_fds);
|
||||||
|
|
Loading…
Reference in a new issue