summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-20 21:56:42 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-20 21:56:42 (GMT)
commit6493389a8c46fc893baedbec73fae2e34fcdcd7a (patch)
tree472d28905ea22798b3263843a4e5de5c2831db53 /Modules/posixmodule.c
parentb9a6d1249894c60eb38d3cc8ce4c1b808482b377 (diff)
downloadcpython-6493389a8c46fc893baedbec73fae2e34fcdcd7a.zip
cpython-6493389a8c46fc893baedbec73fae2e34fcdcd7a.tar.gz
cpython-6493389a8c46fc893baedbec73fae2e34fcdcd7a.tar.bz2
distinguish between getpgrp and setpgrp arg requirements
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 59e27a7..c2678eb 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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;