Author: Amaury Forgeot d'Arc <[email protected]>
Branch: more-rposix
Changeset: r74370:c41704a70c05
Date: 2014-11-07 09:29 +0100
http://bitbucket.org/pypy/pypy/changeset/c41704a70c05/
Log: fixes
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -139,7 +139,8 @@
includes = ['io.h', 'sys/utime.h', 'sys/types.h']
else:
includes = ['unistd.h', 'sys/types.h',
- 'utime.h', 'sys/time.h', 'sys/times.h']
+ 'utime.h', 'sys/time.h', 'sys/times.h',
+ 'grp.h']
eci = ExternalCompilationInfo(
includes=includes,
)
@@ -610,8 +611,8 @@
def getsid(pid):
return handle_posix_error('getsid', c_getsid(pid))
-c_getpgid = external('getpid', [rffi.PID_T], rffi.PID_T)
-c_setpgid = external('setpid', [rffi.PID_T, rffi.PID_T], rffi.INT)
+c_getpgid = external('getpgid', [rffi.PID_T], rffi.PID_T)
+c_setpgid = external('setpgid', [rffi.PID_T, rffi.PID_T], rffi.INT)
@replace_os_function('getpgid')
def getpgid(pid):
@@ -671,9 +672,9 @@
@replace_os_function('setpgrp')
def setpgrp():
if SETPGRP_HAVE_ARG:
- return handle_posix_error('setpgrp', c_setpgrp(0, 0))
+ handle_posix_error('setpgrp', c_setpgrp(0, 0))
else:
- return handle_posix_error('setpgrp', c_setpgrp())
+ handle_posix_error('setpgrp', c_setpgrp())
c_tcgetpgrp = external('tcgetpgrp', [rffi.INT], rffi.PID_T)
c_tcsetpgrp = external('tcsetpgrp', [rffi.INT, rffi.PID_T], rffi.INT)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit