[pypy-dev] _pypy_wait.py fixes
Da_Blitz
pypy at pocketnix.org
Tue May 17 14:46:21 CEST 2011
Hi
when calling wait3 or wait4 in the os module a ctypes error about
return types is printed. a quick patch is included bellow to silence
the message
---
Da_Blitz
diff -r eaba7adf5188 lib_pypy/_pypy_wait.py
--- a/lib_pypy/_pypy_wait.py Thu Apr 28 11:46:10 2011 +0200
+++ b/lib_pypy/_pypy_wait.py Tue May 17 22:43:29 2011 +1000
@@ -8,8 +8,10 @@
c_wait3 = libc.wait3
c_wait3.argtypes = [POINTER(c_int), c_int, POINTER(_struct_rusage)]
+c_wait3.restype = c_int
c_wait4 = libc.wait4
+c_wait4.restype = c_int
c_wait4.argtypes = [c_int, POINTER(c_int), c_int, POINTER(_struct_rusage)]
More information about the pypy-dev
mailing list