Use Popen .communicate() instead of .stdin.write() to avoid deadlocks.

Review Request #5393 — Created Feb. 3, 2014 and submitted

Information

Review Board
master

Reviewers

Use Popen .communicate() instead of .stdin.write() to avoid deadlocks.

Writing to Popen.stdin can cause a deadlock if the passed-in data is larger
than the OS's buffer. The communicate() method avoids this problem, and it
makes the code a bit shorter, too.

  • Ran unit tests.
  • Smoke tested a few diffs.
chipx86
  1. Ship It!

  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (6c0870d).
Loading...