Messages in this thread | | | From | "David Schwartz" <> | Subject | RE: Linux poll() <sigh> again | Date | Fri, 12 May 2006 11:49:35 -0700 |
| |
> > This may be a bug somewhere.. however, once again if you don't > > want read > > to block under any circumstances, set your sockets to non-blocking!
> But that's another hack. AFAICS why ppl (mostly) use select/poll wud be > to know if their send/recv/read/write would go thru rather than getting > blocked!
It's not another hack. If you don't want to block, you must tell the kernel that. As for select/poll telling you that a write won't block, it has never done that. The select/poll functions, just like almost every other system call, do *not* provide future guarantees.
DS
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |