LWN.net Logo

Fedora: an example of community involvement

Fedora: an example of community involvement

Posted Nov 19, 2004 13:58 UTC (Fri) by dcoutts (guest, #5387)
In reply to: Fedora: an example of community involvement by stuart2048
Parent article: Fedora: an example of community involvement

It was not obviously a busy loop. It's a problem with properly understanding the wierd semantics of FIFO's. Apparently if a FIFO has no writers and a reader is poll()ing/select()ing on it, the semantics is that instead of blocking until a writer connects to the FIFO and writes something, the kernel sends the reader process sig HUP every time it poll()s. So the reader ends up spinning bussily.

Conclusion FIFO's are wierd and best avoided in favour of unix domain sockets.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds