[PATCH 0/1] Don't allow getpgrp() to fail

Ken Brown kbrown@cornell.edu
Tue Jul 23 16:12:00 GMT 2019

This patch makes getpgrp() conform to POSIX.  I have some qualms about
it because getpgrp() will now return 0 in cases where it would
previously return -1.  I don't know if this is likely to break any

The patch fixes the problem reported here:


See especially the comments in


about bash.  Although my patch does fix the specific problem I
reported about debugging bash, I'm not sure what other side-effects it
might have.


Ken Brown (1):
  Cygwin: don't allow getpgrp() to fail

 winsup/cygwin/syscalls.cc | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)


More information about the Cygwin-patches mailing list