I think this may actually a bug in Python's pipe implementation in connection with SIGCHLD handling?
A similar issue [http://bugs.python.org/issue9127] was fixed in the subprocess module, but lsb_release in Ubuntu still uses os.popen function via the commands module - which are both deprecated and actually removed in Python 3. Maybe they have not fixed the issue in that deprecated code.
I have replace the lsb_release script and lsb_release.py module with the versions from upstream [http://anonscm.debian.org/gitweb/?p=collab-maint/lsb.git], which were already ported to the subprocess module. I can currently no longer reproduce the issue.
I think this may actually a bug in Python's pipe implementation in connection with SIGCHLD handling?
A similar issue [http:// bugs.python. org/issue9127] was fixed in the subprocess module, but lsb_release in Ubuntu still uses os.popen function via the commands module - which are both deprecated and actually removed in Python 3. Maybe they have not fixed the issue in that deprecated code.
I have replace the lsb_release script and lsb_release.py module with the versions from upstream [http:// anonscm. debian. org/gitweb/ ?p=collab- maint/lsb. git], which were already ported to the subprocess module. I can currently no longer reproduce the issue.