Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 971443b

Browse files
committed
Getpgrp() has a parameter, at least on BSD!
1 parent 56b07c8 commit 971443b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ posix_getpgrp(self, args)
527527
{
528528
if (!getnoarg(args))
529529
return NULL;
530-
return newintobject((long)getpgrp());
530+
return newintobject((long)getpgrp(0));
531531
}
532532

533533
static object *

0 commit comments

Comments
 (0)