Skip to content

Commit 6493389

Browse files
committed
distinguish between getpgrp and setpgrp arg requirements
1 parent b9a6d12 commit 6493389

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Modules/posixmodule.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,11 +816,11 @@ posix_setpgrp(self, args)
816816
{
817817
if (!getnoarg(args))
818818
return NULL;
819-
#ifdef GETPGRP_HAVE_ARG
819+
#ifdef SETPGRP_HAVE_ARG
820820
if (setpgrp(0, 0) < 0)
821-
#else /* GETPGRP_HAVE_ARG */
821+
#else /* SETPGRP_HAVE_ARG */
822822
if (setpgrp() < 0)
823-
#endif /* GETPGRP_HAVE_ARG */
823+
#endif /* SETPGRP_HAVE_ARG */
824824
return posix_error();
825825
INCREF(None);
826826
return None;

0 commit comments

Comments
 (0)