[pypy-svn] r68216 - pypy/trunk/pypy/module/posix
afa at codespeak.net
afa at codespeak.net
Tue Oct 6 19:23:59 CEST 2009
Author: afa
Date: Tue Oct 6 19:23:59 2009
New Revision: 68216
Modified:
pypy/trunk/pypy/module/posix/interp_posix.py
Log:
Correctly wrap the exception raised by os.getsid()
Modified: pypy/trunk/pypy/module/posix/interp_posix.py
==============================================================================
--- pypy/trunk/pypy/module/posix/interp_posix.py (original)
+++ pypy/trunk/pypy/module/posix/interp_posix.py Tue Oct 6 19:23:59 2009
@@ -781,7 +781,11 @@
Call the system call getsid().
"""
- return space.wrap(os.getsid(pid))
+ try:
+ sid = os.getsid(pid)
+ except OSError, e:
+ raise wrap_oserror(space, e)
+ return space.wrap(sid)
getsid.unwrap_spec = [ObjSpace, int]
def setsid(space):
More information about the Pypy-commit
mailing list