summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 19:56:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 19:56:49 (GMT)
commit7cf5599346e397c3489012ad818b4f9b5d572b89 (patch)
treee3970ed7dd73a385d704121071307a05333ec054 /Modules/signalmodule.c
parentac99576a8eda27d7554c5293df22d29ec9a2043d (diff)
downloadcpython-7cf5599346e397c3489012ad818b4f9b5d572b89.zip
cpython-7cf5599346e397c3489012ad818b4f9b5d572b89.tar.gz
cpython-7cf5599346e397c3489012ad818b4f9b5d572b89.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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index c81de6f..41acbfa 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>
@@ -728,7 +731,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));