Code review comment for lp:~openerp-community/openobject-server/stefan-therp_lp879872-6.1

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hi Stefan,

The documentation[1] mentions a warning about the use of Popen.wait() in conjunction with the subprocess writing large amount of data to the pipes, and suggests Popen.communicate() as an alternative. We seem to be fully reading the pipes before wait() is called, so I imagine it might be safe, but wouldn't Popen.communicate() be a better match for our use case?

Also, have you by happenstance tested this code on Windows, to make sure the return codes are identical and reliable on all platforms?

Thanks!

[1] http://docs.python.org/library/subprocess.html#subprocess.Popen.wait

review: Needs Information

« Back to merge proposal