Sergey Nikulov - 2011-12-27

Matt,

I think it is bad idea to return 0 (STDIN_FILENO according the SUS http://pubs.opengroup.org/onlinepubs/009695399/functions/stdin.html) as invalid_file_handle_value(), because it is just valid.

It is better to return (-1).

What do you think?

- Sergey