mirror of https://github.com/python/cpython
add WNOHANG
This commit is contained in:
parent
cf5394f88e
commit
de4e124c9b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue