Re: In which case EWOULDBLOCK is set while a write operation

2007-12-19 Thread Erik Mouw
On Tue, Dec 18, 2007 at 11:27:49AM +0530, Saquib Imam wrote: In which case EWOULDBLOCK / EAGAIN is set while a write operation ? From write(2): ERRORS EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and the write would block. Erik -- They're all fools.

Re: In which case EWOULDBLOCK is set while a write operation

2007-12-18 Thread Mulyadi Santosa
Hi.. In which case EWOULDBLOCK / EAGAIN is set while a write operation ? i think it will happen if you use O_NONBLOCK but writing operation itself will clearly block (for numerous reasons e.g block needs to be allocated first and so on). Can any one give detailed processing of a write