summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-30 10:56:54 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-30 10:56:54 (GMT)
commitde4e124c9b8e48f8777b1d51afdf8b1fa709718f (patch)
tree581a225f26ec178f8cf7debacf203c54ea120706 /Modules
parentcf5394f88ec2b736d23ed2bbaaa05604414efb19 (diff)
downloadcpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.zip
cpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.tar.gz
cpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.tar.bz2
add WNOHANG
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3861528..9b2c0e0 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1504,6 +1504,14 @@ initposix()
fatal("can't define posix.environ");
DECREF(v);
+#ifdef WNOHANG
+ /* Export WNOHANG symbol */
+ v = newintobject((long)WNOHANG);
+ if (v == NULL || dictinsert(d, "WNOHANG", v) != 0)
+ fatal("can't define posix.WNOHANG");
+ DECREF(v);
+#endif
+
/* Initialize posix.error exception */
PosixError = newstringobject("posix.error");
if (PosixError == NULL || dictinsert(d, "error", PosixError) != 0)