diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-10 20:03:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-10 20:03:08 (GMT) |
commit | c2d020090b324285bf144f29ac4da3771be7c40a (patch) | |
tree | 83b61e08fea50d104d75a7c12e64909e6ea82c50 /Modules/signalmodule.c | |
parent | d80b16dbd5cc817c452df4a114134b63977551c4 (diff) | |
parent | 7cf5599346e397c3489012ad818b4f9b5d572b89 (diff) | |
download | cpython-c2d020090b324285bf144f29ac4da3771be7c40a.zip cpython-c2d020090b324285bf144f29ac4da3771be7c40a.tar.gz cpython-c2d020090b324285bf144f29ac4da3771be7c40a.tar.bz2 |
Issue #4591: Uid and gid values larger than 2**31 are supported now.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 1e5ee27..0e91450 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -4,6 +4,9 @@ /* XXX Signals should be recorded per thread, now we have thread state. */ #include "Python.h" +#ifndef MS_WINDOWS +#include "posixmodule.h" +#endif #ifdef MS_WINDOWS #include <Windows.h> @@ -723,7 +726,7 @@ fill_siginfo(siginfo_t *si) PyStructSequence_SET_ITEM(result, 1, PyLong_FromLong((long)(si->si_code))); PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong((long)(si->si_errno))); PyStructSequence_SET_ITEM(result, 3, PyLong_FromPid(si->si_pid)); - PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong((long)(si->si_uid))); + PyStructSequence_SET_ITEM(result, 4, _PyLong_FromUid(si->si_uid)); PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong((long)(si->si_status))); PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band)); |