From 0678b843f10191abadc5f47cef9a8ab6a29b7326 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 3 Mar 2023 11:29:58 +0000 Subject: [PATCH] win32: revise poll(2) for use in nc Upstream commit 5b3b468ec (nc: use poll() instead of select()) changed `nc` to use poll(2) instead of select(2), obviously. In busybox-w32 select(2) had already been hacked to support `nc`. To avoid hacking poll(2) too the upstream change was reverted (c2002eae3). Later `nc` was altered to include the code for both poll and select (3c85cc0c4). Make the changes necessary for poll(2) to work with `nc` on Windows. These are all in the function windows_compute_revents(). Treat a character file that isn't a console as a normal file. Without this `nc 127.0.0.1 1234