python-scan: avoid possible deadlock passing list of modules to the api scanner process

This commit is contained in:
Gustavo J. A. M. Carneiro
2010-06-13 16:34:15 +01:00
parent 91d49b20c4
commit d2d68087d6
2 changed files with 2 additions and 2 deletions

View File

@@ -437,7 +437,7 @@ class python_scan_task(Task.TaskBase):
self.cflags,
]
scan = subprocess.Popen(argv, stdin=subprocess.PIPE)
scan.stdin.write(repr(get_modules_and_headers(self.bld)))
print >> scan.stdin, repr(get_modules_and_headers(self.bld))
scan.stdin.close()
retval = scan.wait()
return retval