1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 13:19:04 +00:00

Make ncat unconditionally use the select engine on windows. WSAPoll()

can't handle read events on stdin. This is a workaround intended to
mitigate the issue until we implement a fpoll function in nbase.
This commit is contained in:
henri
2012-10-26 09:40:14 +00:00
parent 91d40ba8ee
commit 84c80a7b34

View File

@@ -489,6 +489,13 @@ int ncat_connect(void)
* the use of the select-based engine. */
if (stdin_is_reg())
nsock_set_default_engine("select");
#elif defined(WIN32)
/* -- Hack!!
* Unconditionally use the select engine on windows.
* The poll engine (WSAPoll) is currently unable to handle
* read events on stdin.
*/
nsock_set_default_engine("select");
#endif
/* Create an nsock pool */