]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
distinguish between getpgrp and setpgrp arg requirements
authorGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 21:56:42 +0000 (21:56 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 21:56:42 +0000 (21:56 +0000)
Modules/posixmodule.c

index 59e27a7e7b4675aab8d592185021a516469923eb..c2678eb5b21ade925cd2125ffea665f8eca54574 100644 (file)
@@ -816,11 +816,11 @@ posix_setpgrp(self, args)
 {
        if (!getnoarg(args))
                return NULL;
-#ifdef GETPGRP_HAVE_ARG
+#ifdef SETPGRP_HAVE_ARG
        if (setpgrp(0, 0) < 0)
-#else /* GETPGRP_HAVE_ARG */
+#else /* SETPGRP_HAVE_ARG */
        if (setpgrp() < 0)
-#endif /* GETPGRP_HAVE_ARG */
+#endif /* SETPGRP_HAVE_ARG */
                return posix_error();
        INCREF(None);
        return None;