mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
distinguish between getpgrp and setpgrp arg requirements
This commit is contained in:
parent
b9a6d12498
commit
6493389a8c
1 changed files with 3 additions and 3 deletions
|
@ -816,11 +816,11 @@ posix_setpgrp(self, args)
|
||||||
{
|
{
|
||||||
if (!getnoarg(args))
|
if (!getnoarg(args))
|
||||||
return NULL;
|
return NULL;
|
||||||
#ifdef GETPGRP_HAVE_ARG
|
#ifdef SETPGRP_HAVE_ARG
|
||||||
if (setpgrp(0, 0) < 0)
|
if (setpgrp(0, 0) < 0)
|
||||||
#else /* GETPGRP_HAVE_ARG */
|
#else /* SETPGRP_HAVE_ARG */
|
||||||
if (setpgrp() < 0)
|
if (setpgrp() < 0)
|
||||||
#endif /* GETPGRP_HAVE_ARG */
|
#endif /* SETPGRP_HAVE_ARG */
|
||||||
return posix_error();
|
return posix_error();
|
||||||
INCREF(None);
|
INCREF(None);
|
||||||
return None;
|
return None;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue