2022-02-07 06:37:49 +00:00
|
|
|
Index: python-prctl-1.8.1/_prctlmodule.c
|
2020-09-07 12:27:41 +00:00
|
|
|
===================================================================
|
2022-02-07 06:37:49 +00:00
|
|
|
--- python-prctl-1.8.1.orig/_prctlmodule.c
|
|
|
|
+++ python-prctl-1.8.1/_prctlmodule.c
|
|
|
|
@@ -51,6 +51,7 @@ prctl_prctl(PyObject *self, PyObject *ar
|
2020-09-07 12:27:41 +00:00
|
|
|
long option = 0;
|
|
|
|
long arg = 0;
|
2022-02-07 06:37:49 +00:00
|
|
|
long arg2 = 0;
|
2020-09-07 12:27:41 +00:00
|
|
|
+ int intarg = 0;
|
|
|
|
char *argstr = NULL;
|
|
|
|
char name[17] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
|
|
|
int result;
|
2022-02-07 06:37:49 +00:00
|
|
|
@@ -378,12 +379,12 @@ prctl_prctl(PyObject *self, PyObject *ar
|
2020-09-07 12:27:41 +00:00
|
|
|
#ifdef PR_GET_TID_ADDRESS
|
|
|
|
case(PR_GET_TID_ADDRESS):
|
|
|
|
#endif
|
|
|
|
- result = prctl(option, &arg, 0, 0, 0);
|
|
|
|
+ result = prctl(option, &intarg, 0, 0, 0);
|
|
|
|
if(result < 0) {
|
|
|
|
PyErr_SetFromErrno(PyExc_OSError);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
- return PyInt_FromLong(arg);
|
|
|
|
+ return PyInt_FromLong(intarg);
|
|
|
|
case(PR_SET_NAME):
|
|
|
|
case(PR_GET_NAME):
|
|
|
|
result = prctl(option, name, 0, 0, 0);
|