mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
The helper is only necessary for wait3/4.
This commit is contained in:
parent
46fa48ab04
commit
6c2f913805
1 changed files with 2 additions and 0 deletions
|
@ -5097,6 +5097,7 @@ posix_setgroups(PyObject *self, PyObject *args)
|
|||
}
|
||||
#endif /* HAVE_SETGROUPS */
|
||||
|
||||
#if defined(HAVE_WAIT3) || defined(HAVE_WAIT4)
|
||||
static PyObject *
|
||||
wait_helper(int pid, int status, struct rusage *ru)
|
||||
{
|
||||
|
@ -5154,6 +5155,7 @@ wait_helper(int pid, int status, struct rusage *ru)
|
|||
|
||||
return Py_BuildValue("iiO", pid, status, result);
|
||||
}
|
||||
#endif /* HAVE_WAIT3 || HAVE_WAIT4 */
|
||||
|
||||
#ifdef HAVE_WAIT3
|
||||
PyDoc_STRVAR(posix_wait3__doc__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue