mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
add WNOHANG
This commit is contained in:
parent
cf5394f88e
commit
de4e124c9b
1 changed files with 8 additions and 0 deletions
|
|
@ -1504,6 +1504,14 @@ initposix()
|
||||||
fatal("can't define posix.environ");
|
fatal("can't define posix.environ");
|
||||||
DECREF(v);
|
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 */
|
/* Initialize posix.error exception */
|
||||||
PosixError = newstringobject("posix.error");
|
PosixError = newstringobject("posix.error");
|
||||||
if (PosixError == NULL || dictinsert(d, "error", PosixError) != 0)
|
if (PosixError == NULL || dictinsert(d, "error", PosixError) != 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue