This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 0/1] Don't allow getpgrp() to fail
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Tue, 23 Jul 2019 16:12:40 +0000
- Subject: [PATCH 0/1] Don't allow getpgrp() to fail
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=cornell.edu;dmarc=pass action=none header.from=cornell.edu;dkim=pass header.d=cornell.edu;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tfVDG2o2oDdbyJgWdfce5r60rocIxTgrTVvfkHRGyt8=; b=HjbhpvZZ0AqSpeKNjitgKB06yxvS+fj/wGhxl56thTjMEJPE2q9Ziz15Je0i1KCmkT4dj34MKxaXZpZ7I9V2qsHWyIi0s3IW648d5z3W/+sAW8ib/YVVDTb4WW/XOc+QgOYHmn7TXa4YVjMANe404TTNuJjAGXkZOpEwWIRnfDO3loyGsHSoLKpVZRXtbrEQhQca1mIrxAS/OzKofMm18iLazKfPSktsqBPs8IvHCpqGSK+5iB/alJy61yFZVfE/hytrvZM7Yl6p9Rx8Fdsa7RSrK+Xsnz6tKhZrgAFFa0f5NzTAIGrO08wxx4cHnYcKs3foWW5LwJf87z4sUhm6dg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLr/cvBjeRwtkX8ohQc1jb4iX53zgPrzbs85dZIpQlizDyhxhQE6FPUud1+kz2so+V5bARNoi8ca2L6YtuPR+TRh9eCYy2uF/+7v9ZF5YZsvPADfWVWhl8zUkczyX+wtAc5ht4JH+k4Dk9Aqj6+ju4ATB7rQvt5Uke5uHMTdC7ReswDEDAflCs2rRn4OQJZHwfD9KZU9+kDFmpqWo3nqotkIVB/6XsfQeArSho9p9Qreg/gH/QaAuxJu3NfOHf7ZngGPDzGXlkQEdtbR9/7OoDRCm4WXM2mK6WHABIbAgEm6ACH8d9lAij2EuYldgCutaKOZqyOAXp3AMoZSmQ9QZg==
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
applications.
The patch fixes the problem reported here:
https://cygwin.com/ml/cygwin/2019-07/msg00166.html.
See especially the comments in
https://cygwin.com/ml/cygwin/2019-07/msg00208.html
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
Ken Brown (1):
Cygwin: don't allow getpgrp() to fail
winsup/cygwin/syscalls.cc | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
--
2.21.0