Popen objects provide pid (not getpid)

This commit is contained in:
Thomas Nagy 2016-02-26 21:23:49 +01:00
parent 5bf16d51d8
commit 1f95d2c4cb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 1 deletions

View File

@ -843,7 +843,7 @@ def run_prefork_process(cmd, kwargs, cargs):
proc.stdin.flush()
obj = proc.stdout.readline()
if not obj:
raise OSError('Preforked sub-process died %r' % proc.getpid())
raise OSError('Preforked sub-process %r died' % proc.pid)
process_pool.append(proc)
ret, out, err, ex, trace = cPickle.loads(base64.b64decode(obj))