• Neal Norwitz's avatar
    Use O_NONBLOCK rather than O_NDELAY, so we get POSIX non-blocking I/O. · 39d22e56
    Neal Norwitz authored
    On HPUX, Solaris, Tru64 (Dec UNIX), and IRIX (I think),
    O_NONBLOCK is the POSIX version of non-blocking I/O
    which is what we want.
    
    On Linux and FreeBSD (at least), O_NONBLOCK and O_NDELAY are the same.
    So this change should have no negative effect on those platforms.
    
    Tested on Linux, Solaris, HPUX.
    
    Thanks to Anders Qvist for diagnosing this problem.
    39d22e56