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>
Thu, 17 Mar 2011 21:12:13 +0000 (14:12 -0700)
commiteff879ff0ce7dcc1ce68d5f16de1ec73051f8c18
tree3a834276dfebddce50a10a850139342d490ba62c
parent0eab3143c1aad2addd0f88cfd7a62940d064df3a
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