diff options
author | Guido van Rossum <guido@python.org> | 1995-03-30 10:56:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-30 10:56:54 (GMT) |
commit | de4e124c9b8e48f8777b1d51afdf8b1fa709718f (patch) | |
tree | 581a225f26ec178f8cf7debacf203c54ea120706 /Modules | |
parent | cf5394f88ec2b736d23ed2bbaaa05604414efb19 (diff) | |
download | cpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.zip cpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.tar.gz cpython-de4e124c9b8e48f8777b1d51afdf8b1fa709718f.tar.bz2 |
add WNOHANG
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 8 |
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) |