summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-10 21:10:31 -0800
committerGregory P. Smith <greg@krypto.org>2012-11-10 21:10:31 -0800
commit22f9e65bb11ab8dee2562fe5bf4e19dc9ff87bf7 (patch)
treeb2ee3bf7504f2ef298b67d1e70b43138265fd626 /Python/bltinmodule.c
parentf6128db16b5187864ee8da2078d87bd52539fcad (diff)
parentbbdd90ba3a4de0c56d65b1fcc6db37b2730119d6 (diff)
downloadcpython-22f9e65bb11ab8dee2562fe5bf4e19dc9ff87bf7.tar.gz
Fixes issue #14396: Handle the odd rare case of waitpid returning 0
when not expected in subprocess.Popen.wait().
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 0e6e6ff9ff..fac64bcc69 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2405,6 +2405,12 @@ PyObject *
_PyBuiltin_Init(void)
{
PyObject *mod, *dict, *debug;
+
+ if (PyType_Ready(&PyFilter_Type) < 0 ||
+ PyType_Ready(&PyMap_Type) < 0 ||
+ PyType_Ready(&PyZip_Type) < 0)
+ return NULL;
+
mod = PyModule_Create(&builtinsmodule);
if (mod == NULL)
return NULL;