ebuild-ipc: use non-blocking read
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Mar 2011 21:12:13 +0000 (14:12 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 18 Mar 2011 19:50:14 +0000 (12:50 -0700)
commit768958c9d1504f72d2f252c1793a5bc48a2a4a85
treeb5d66a46683197736331029a4b1da01a4a66f407
parentf72d4b20478a33da08dd30f399b3a55cc7a9dda4
ebuild-ipc: use non-blocking read

This makes it possible for the daemon to send a reply without blocking,
thereby improving performance and also making it possible for the
daemon to do a non-blocking write without a race condition.

This reverts part of commit 81fc303212b8379219cf5d463c8717359b972dba,
which probably didn't help portability anyway. Now, ebuild-ipc is using
non-blocking read with os.read and EAGAIN handling, just like
EbuildIpcDaemon since commit 7e5b81da12dd7bd59f6620840dc0d824e3f4d69a
(known compatible with FreeBSD).
bin/ebuild-ipc.py