On 09/06/2013 08:07 PM, Harald Leithner wrote: > Even imapd has the same? problem:
Didn't talk about imapd already in this context? > poll([{fd=10, events=POLLIN}, {fd=9, events=POLLIN}, {fd=130, > events=POLLIN|POLLOUT}, {fd=11, events=POLLIN}, {fd=71, events=POLLIN}, > {fd=98, events=POLLIN}, {fd=25, events=POLLIN}, {fd=61, events=POLLIN}, > {fd=14, events=POLLIN}, {fd=45, events=POLLIN}, {fd=191, events=POLLIN}, > {fd=107, events=POLLIN}, {fd=21, events=POLLIN}, {fd=24, events=POLLIN}, > {fd=101, events=POLLIN}, {fd=35, events=POLLIN}, {fd=120, > events=POLLIN}, {fd=65, events=POLLIN}, {fd=105, events=POLLIN}, {fd=97, > events=POLLIN}, {fd=47, events=POLLIN}, {fd=57, events=POLLIN}, {fd=50, > events=POLLIN}, {fd=43, events=POLLIN}, {fd=20, events=POLLIN}, {fd=19, > events=POLLIN}, {fd=27, events=POLLIN}, {fd=79, events=POLLIN}, {fd=42, > events=POLLIN}, {fd=121, events=POLLIN}, {fd=55, events=POLLIN}, > {fd=192, events=POLLIN}, ....], 55, 1686) = 1 ([{fd=130, revents=POLLOUT}]) > time(NULL) = 1378490616 > read(130, 0x7f3c9bb34003, 5) = -1 EAGAIN (Resource > temporarily unavailable) Now *that* is interesting. I assume filehandle 130 here is about the self-pipe, since it's keyed at read and write events (POLLIN|POLLOUT). But here revents says POLLOUT which means ready for writing, but this triggers an attempt to read... I need to think about this, and rework the self-pipe design! -- ________________________________________________________________ Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin * Premium Hosting Services and Web Application Consultancy * www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 ________________________________________________________________ _______________________________________________ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail