Index: pym/_emerge/EbuildIpcDaemon.py |
diff --git a/pym/_emerge/EbuildIpcDaemon.py b/pym/_emerge/EbuildIpcDaemon.py |
index efcda93169ebb5d9161f7f2111e88d7f35a55b6f..0ff29cbe33296e8872bfd648d30e3ccaa52ee593 100644 |
--- a/pym/_emerge/EbuildIpcDaemon.py |
+++ b/pym/_emerge/EbuildIpcDaemon.py |
@@ -84,6 +84,6 @@ class EbuildIpcDaemon(FifoIpcDaemon): |
def _send_reply(self, reply): |
# File streams are in unbuffered mode since we do atomic |
# read and write of whole pickles. |
- output_file = open(self.output_fifo, 'wb', 0) |
- output_file.write(pickle.dumps(reply)) |
- output_file.close() |
+ output_file = os.open(self.output_fifo, os.O_WRONLY | os.O_NONBLOCK) |
+ os.write(output_file, pickle.dumps(reply)) |
+ os.close(output_file) |