This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error setting pipe to non-blocking IO


Brian Ford wrote:

ioctl(pipefd[0], FIOBIO, &n);

use:
        fcntl(pipefd[0], F_SETFL, O_NONBLOCK);
instead.

PTC for FIOBIO, although I can't even find what header that's in?

fcntl did the trick. Thanks. FIONBIO come from sys/termios.h. I mis-spelled it in my message.


Thanks again,

Andy





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]