Staging
v0.5.1
https://github.com/python/cpython
Revision d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 authored by Alex Rebert on 22 January 2020, 23:28:31 UTC, committed by Gregory P. Smith on 22 January 2020, 23:28:31 UTC
When communicate() is called in a loop, it crashes when the child process
has already closed any piped standard stream, but still continues to be running

Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>
1 parent 1f0f102
Raw File
Tip revision: d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 authored by Alex Rebert on 22 January 2020, 23:28:31 UTC
bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117)
Tip revision: d3ae95e
dtoa.h
#ifndef Py_LIMITED_API
#ifndef PY_NO_SHORT_FLOAT_REPR
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
                        int *decpt, int *sign, char **rve);
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
PyAPI_FUNC(double) _Py_dg_stdnan(int sign);
PyAPI_FUNC(double) _Py_dg_infinity(int sign);


#ifdef __cplusplus
}
#endif
#endif
#endif
back to top