error - this is the wrong error value for Windows and it shouldn't be logged using lprintf (to the Telnet log/window). Instead, this JS function will now return null if/when select returns < 0 and the script can handle the error condition and log or not log as it sees fit.