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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user