From: Guido van Rossum Date: Thu, 20 Oct 1994 21:56:42 +0000 (+0000) Subject: distinguish between getpgrp and setpgrp arg requirements X-Git-Tag: v1.1.1~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6493389a8c46fc893baedbec73fae2e34fcdcd7a;p=thirdparty%2FPython%2Fcpython.git distinguish between getpgrp and setpgrp arg requirements --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 59e27a7e7b46..c2678eb5b21a 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;