Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: pym/_emerge/EbuildIpcDaemon.py

Issue 6713003: Update EbuildIpcDaemon to open files as non-blocking. (Closed) Base URL: http://git.chromium.org/git/portage_tool.git@cros-2.1.9
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/ebuild-ipc.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « bin/ebuild-ipc.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698