Looks like that this is not cross-platform. With Windows XP, the OP's code does return -1.
A note that could be related: on Windows, select() is implemented as part of Windows Socket 2. Most likely, select() only works with socket on Windows.
In reply to Re: Select and file handler
by pg
in thread Select and file handler
by c_chipster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |