add WNOHANG

This commit is contained in:
Guido van Rossum 1995-03-30 10:56:54 +00:00
parent cf5394f88e
commit de4e124c9b
1 changed files with 8 additions and 0 deletions

View File

@ -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)