How to do a non-blocking write of more than one char?

Guy Harris guy at auspex.auspex.com
Tue Jan 9 09:28:18 AEST 1990


>If select() says the fd is writable, is the write() guaranteed not to
>block?

Which "write()"?  Not all "write()"s are guaranteed not to block.  It's
guaranteed that you can write *some* amount of data without blocking,
but no guarantee as to how much is made, in general.  Sorry, but you
really *are* expected to use non-blocking I/O in that case.... 



More information about the Comp.unix.questions mailing list