[pypy-svn] pypy default: Try to fix wait3, how could it ever have worked?
alex_gaynor
commits-noreply at bitbucket.org
Fri Apr 1 07:29:10 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r43065:674159439fdb
Date: 2011-04-01 01:28 -0400
http://bitbucket.org/pypy/pypy/changeset/674159439fdb/
Log: Try to fix wait3, how could it ever have worked?
diff --git a/lib_pypy/_pypy_wait.py b/lib_pypy/_pypy_wait.py
--- a/lib_pypy/_pypy_wait.py
+++ b/lib_pypy/_pypy_wait.py
@@ -3,14 +3,14 @@
from resource import _struct_rusage, struct_rusage
libc = CDLL(find_library("c"))
-wait3 = libc.wait3
+c_wait3 = libc.wait3
-wait3.argtypes = [POINTER(c_int), c_int, POINTER(_struct_rusage)]
+c_wait3.argtypes = [POINTER(c_int), c_int, POINTER(_struct_rusage)]
def wait3(options):
status = c_int()
_rusage = _struct_rusage()
- pid = wait3(byref(status), c_int(options), byref(_rusage))
+ pid = c_wait3(byref(status), c_int(options), byref(_rusage))
rusage = struct_rusage((
float(_rusage.ru_utime),
More information about the Pypy-commit
mailing list