Kaydet (Commit) 6b680cd6 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fixed compilation error in signalmodule.c (issue #20182).

üst c7027b79
......@@ -333,20 +333,20 @@ PyDoc_STRVAR(signal_sigtimedwait__doc__,
static PyObject *
signal_sigtimedwait_impl(PyModuleDef *module, PyObject *sigset,
PyObject *timeout);
PyObject *timeout_obj);
static PyObject *
signal_sigtimedwait(PyModuleDef *module, PyObject *args)
{
PyObject *return_value = NULL;
PyObject *sigset;
PyObject *timeout;
PyObject *timeout_obj;
if (!PyArg_UnpackTuple(args, "sigtimedwait",
2, 2,
&sigset, &timeout))
&sigset, &timeout_obj))
goto exit;
return_value = signal_sigtimedwait_impl(module, sigset, timeout);
return_value = signal_sigtimedwait_impl(module, sigset, timeout_obj);
exit:
return return_value;
......@@ -429,4 +429,4 @@ exit:
#ifndef SIGNAL_PTHREAD_KILL_METHODDEF
#define SIGNAL_PTHREAD_KILL_METHODDEF
#endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */
/*[clinic end generated code: output=65ca7b83632eda99 input=a9049054013a1b77]*/
/*[clinic end generated code: output=b99278c16c40ea43 input=a9049054013a1b77]*/
......@@ -1017,7 +1017,7 @@ signal_sigwaitinfo(PyModuleDef *module, PyObject *sigset)
signal.sigtimedwait
sigset: object
timeout: object
timeout as timeout_obj: object
/
Like sigwaitinfo(), but with a timeout.
......@@ -1027,8 +1027,8 @@ The timeout is specified in seconds, with floating point numbers allowed.
static PyObject *
signal_sigtimedwait_impl(PyModuleDef *module, PyObject *sigset,
PyObject *timeout)
/*[clinic end generated code: output=e6e049f2bddea688 input=036bbab9b15cb8de]*/
PyObject *timeout_obj)
/*[clinic end generated code: output=c1960b5cea139929 input=53fd4ea3e3724eb8]*/
{
struct timespec ts;
sigset_t set;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment