*: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERR
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -618,7 +618,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv)
|
||||
default:
|
||||
|
||||
#ifdef USE_POLL
|
||||
if (ufds[0].revents & POLLIN)
|
||||
if (ufds[0].revents)
|
||||
#else
|
||||
if (FD_ISSET(STDIN_FILENO, &rfds))
|
||||
#endif
|
||||
@@ -631,7 +631,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv)
|
||||
}
|
||||
|
||||
#ifdef USE_POLL
|
||||
if (ufds[1].revents & POLLIN)
|
||||
if (ufds[1].revents)
|
||||
#else
|
||||
if (FD_ISSET(netfd, &rfds))
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user