Commit de4e124c authored by Guido van Rossum's avatar Guido van Rossum

add WNOHANG

parent cf5394f8
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment