mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 18:07:12 +01:00
Popen objects provide pid (not getpid)
This commit is contained in:
parent
5bf16d51d8
commit
1f95d2c4cb
@ -843,7 +843,7 @@ def run_prefork_process(cmd, kwargs, cargs):
|
|||||||
proc.stdin.flush()
|
proc.stdin.flush()
|
||||||
obj = proc.stdout.readline()
|
obj = proc.stdout.readline()
|
||||||
if not obj:
|
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)
|
process_pool.append(proc)
|
||||||
ret, out, err, ex, trace = cPickle.loads(base64.b64decode(obj))
|
ret, out, err, ex, trace = cPickle.loads(base64.b64decode(obj))
|
||||||
|
Loading…
Reference in New Issue
Block a user