]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add WNOHANG
authorGuido van Rossum <guido@python.org>
Thu, 30 Mar 1995 10:56:54 +0000 (10:56 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Mar 1995 10:56:54 +0000 (10:56 +0000)
Modules/posixmodule.c

index 38615283cd5316766ea9df9e6f397a27edd8f95d..9b2c0e066194a135483272d9dc6c03e0ff81121e 100644 (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)