From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "KARR, DAVID" Newsgroups: gmane.emacs.help Subject: RE: After reinstalling Cygwin, executing shell function in Emacs gets "cannot set terminal process group" Date: Sun, 11 Aug 2024 17:51:40 +0000 Message-ID: References: <86plqikn61.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30952"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , "Help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 11 19:52:44 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sdCkD-0007tw-MK for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Aug 2024 19:52:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdCjd-0007jY-Jl; Sun, 11 Aug 2024 13:52:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdCjb-0007jO-Qt for Help-gnu-emacs@gnu.org; Sun, 11 Aug 2024 13:52:04 -0400 Original-Received: from mx0a-00191d01.pphosted.com ([67.231.149.140]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdCjW-0001dv-Dm; Sun, 11 Aug 2024 13:52:03 -0400 Original-Received: from pps.filterd (m0288874.ppops.net [127.0.0.1]) by m0288874.ppops.net-00191d01. (8.18.1.2/8.18.1.2) with ESMTP id 47BEP1Y4027890; Sun, 11 Aug 2024 13:51:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.com; h=from :to:subject:date:message-id:references:in-reply-to:content-type :mime-version; s=PP1; bh=IkweP523nPfjX3uE4v04YMR3bGClPZyBQ7o16QE DlKA=; b=TrFpVC0AFEH4cSsBwX6Uk1afc7eA0hekRIELSQfuCc0DVXUVMFCZpQh LH9nqc2ajucf8aVwJLuaAHNEXDCqSN5wpe9T4zQtnsNG/ZBzeVGcP1cKWw4DugAv 4DnMFcc4Cw1gffWbzpXXE+K2DK7KSCHh/IE+od8++xhV/70R0pPx39XgVGF9rJR+ daPnc0Kn0WJtCJQ9/eLXRoiZUELcWSP7Uu7FdrOB7arKBqXEKYEZmzqrnsz/ok9l SXe6Dj+wBuu6OeRAgCpIj5qux81obJwZXdD+BRMgLPgm379hMRwauXTX6yTxo9cZ zbgakCLPdj5pC1zVf8Yk1EJPPN8lQRw== Original-Received: from flpd657.enaf.ffdc.sbc.com (sbcsmtp9.sbc.com [144.160.128.153]) by m0288874.ppops.net-00191d01. (PPS) with ESMTPS id 40x0x8k07y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 11 Aug 2024 13:51:50 -0400 (EDT) Original-Received: from enaf.ffdc.sbc.com (localhost [127.0.0.1]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id 47BHpojj054225; Sun, 11 Aug 2024 10:51:50 -0700 Original-Received: from zlp25946.vci.att.com (zlp25946.vci.att.com [135.213.92.138]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id 47BHpjX2054194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 11 Aug 2024 10:51:46 -0700 Original-Received: from zlp25946.vci.att.com (zlp25946.vci.att.com [127.0.0.1]) by zlp25946.vci.att.com (Service) with ESMTP id 67462410F2B5; Sun, 11 Aug 2024 17:51:45 +0000 (GMT) Original-Received: from CAFRFD1MSGED1EL.ITServices.sbc.com (unknown [135.147.202.237]) by zlp25946.vci.att.com (Service) with ESMTP id 1F8D4410F425; Sun, 11 Aug 2024 17:51:45 +0000 (GMT) Original-Received: from CAFRFD1MSGEX5EF.ITServices.sbc.com (135.147.202.235) by CAFRFD1MSGED1EL.ITServices.sbc.com (135.147.202.237) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sun, 11 Aug 2024 10:51:44 -0700 Original-Received: from CAFRFD1MSGETA07.tmg.ad.att.com (144.160.143.86) by CAFRFD1MSGEX5EF.ITServices.sbc.com (135.147.202.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11 via Frontend Transport; Sun, 11 Aug 2024 10:51:44 -0700 Original-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) by edgeFF.exch.att.com (144.160.143.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sun, 11 Aug 2024 10:51:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vQiAAxC+bn0iuUXtWJr1VUC3YSB0dD0MdhEnFwy8LY+y+ToIzjVYVtkjlc7aaU0H+5Qzi+FDsoyvxdGpv7Yk+kyc5g883vFU1Tg8BgGgXkw3tco/DgPKbOR5P2yD+Gu8FxzqOuZk1Z9d4/lNqlONGpyfUFMCI2FPEvAERhCySyorKBoftRctJCEjIwEOuYESroqbn4jpw0AzsrILNpLMam5bEUs306oC/xsbtQuvDFqVqVtTzBo+PlEJvepmXlad8lKufZVcgV84MOF/XA0BBne1rocoCI3SudgHY0CkhORxYf8OgtnwABkXkX6N5mRdoaVabc6PUxnZ8Ocbrmkjhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jEFthTrtXvZXE+TmAwHYJQjnzD6PK5njh6Fmtes4hMQ=; b=vU1B6h0QO+KQqCD0Snca9BgMUsGZarGOri8lAFgUu1/mkNAoJP/mxHFe7izqGQks31s3rregounXtt+BuqHUyrofYG/b+MSvk1QSMx0DPPwHSCmb7iWWZR2NVH5OmKL9A9zNTCnM3wN7+oohTmsceNvJklvq+KTh+j7MiKl7U+OHhya+IML7xACEKu8Wp8n3x5oAwzAW359cWzv9hEDNhjFA4dL6ji6sm/6GAK7U4osCrBdkWp1O3MIZvOO8pd4M+7TdoqZNxRbiD1J4DKNPc3+3v2572UTSJZxbcS9GmMEro83EyJoTgUOYuxDq/ayAXPN2E/fDjHkmz0R/CB00cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none Original-Received: from DM3PR02MB10256.namprd02.prod.outlook.com (2603:10b6:0:4b::5) by BY5PR02MB6978.namprd02.prod.outlook.com (2603:10b6:a03:23f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.20; Sun, 11 Aug 2024 17:51:41 +0000 Original-Received: from DM3PR02MB10256.namprd02.prod.outlook.com ([fe80::1f1d:c970:cbe7:1d04]) by DM3PR02MB10256.namprd02.prod.outlook.com ([fe80::1f1d:c970:cbe7:1d04%5]) with mapi id 15.20.7849.018; Sun, 11 Aug 2024 17:51:41 +0000 Thread-Topic: After reinstalling Cygwin, executing shell function in Emacs gets "cannot set terminal process group" Thread-Index: Adrp69krfpdIpXRqTzKi6g6o1Fb1dQAWuJZ1AHQDmHA= In-Reply-To: <86plqikn61.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM3PR02MB10256:EE_|BY5PR02MB6978:EE_ x-ms-office365-filtering-correlation-id: da4efa40-f920-4ad1-2702-08dcba2e417a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?ZjJ3QnVvWWJxWjk0WTdpa1BRS3R6V1R6aWZOeXNoVFlUVm5CcGNKNlRIQXpD?= =?utf-8?B?K3d1b0FPU2tKWWNEZGlNTkF3dG9pZ1BOYW0wVFJFZjhURFNYRWpnSFNEcEFO?= =?utf-8?B?cVVHV1F6L3l6QlJZcmxlNXJEa2xzZ1RKMWRjV2pLYnlzYTVFazZWcUIvUm5T?= =?utf-8?B?QnhXekEzYXVCdURIakdHZ20wYThkaFdUcmxwMDh2aU1uSWpUaEZGYmRFM0Vs?= =?utf-8?B?SDErNEFtcjJsNm5lNXEzSkEya0ZjMkhCY1ZrOTN6enIyLzVxUzFKbFZSNTZV?= =?utf-8?B?SForZXRwSG9sZi9EWmg5YzRGUG1ubUxia01WTWEyWGxHaXBSa1QzS1kyU01X?= =?utf-8?B?cmJwRGR4aVFnem9XVzNaSDE0T3lUSnRVaklLby9mTTlMZDAzdkgrMWR2a3ZL?= =?utf-8?B?RWVsU3p3cXMvejlWZnB4WG43QU8yTVpxY1hramtseGthc0dYUU4ybzl3THZ0?= =?utf-8?B?a2dBdFRrSHRBQmluODJtNzQ4QkVCdFdITkNmVE1seVQzalZmQldDOXVSeGFC?= =?utf-8?B?UTJhSmU3dG1OUy9TNzNQcUFjbUJOR04yNURhbjRlaytxTTZjenQzajY0OGpS?= =?utf-8?B?bGZlM0dOZUc2YkY3b1k2S3k4a3J3bGFlUzg1VXFOa2FoNVJrNFd4bFFjR1Ar?= =?utf-8?B?Rk5pbVlSbVVHcDNMY0hQb1pjaHFTM0NxWmZ1NDB6d x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM3PR02MB10256.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?eC91aVE2Q3E1YVA0VS9YTTRFRlZGdlI3Y21sTFJTaHQwYyt1cEJDWWVQQ1c1?= =?utf-8?B?d3VUaFlpdFphTWlWa1BRTi84YXVpdkgxWkhYaDdFMTM2QXIzeGtRbzFiWnZr?= =?utf-8?B?S0xXcUM0WDJIUkJKaG9QWWlrY1U5bnpRYlZ3SGpwT0VSTi80RUwzNGcrTllS?= =?utf-8?B?Vi9TS29uY0tjL25lamlkU2dzTmpvNW9zcFFlYnE2bzJ4dGVQZFpvcklPMGtP?= =?utf-8?B?ZzJOZ21tRFBTMGVma1N1TXlLL2hNSnM3UjV4ZXArbjJ5bGFaWUkyTm1IaHY3?= =?utf-8?B?TnlTUit1SisyOHBSV2I1c2lPT0lpZkk2ejVaK2U4RnpadXk5ZjlVV0ZaaWNo?= =?utf-8?B?dmkyVGtxMDR2N2lxbWJ0M3E2bUxpdmdDNkRhYVVuVVgrbTU4N1JZMk04MUp2?= =?utf-8?B?TUNWQ2txVVRhM2tNZVpIMkNGR3dnVjJGQTRKYjZYaHpKN1UvakMyUmY2QVMv?= =?utf-8?B?OGhCYzBoaS9CL3NSU3MwV2FvSFJyeHdldnpKTUtKUGE3Lzdpc3lUZzliKzYx?= =?utf-8?B?Sm4wSmR2ZXJwTlhseXE2WWtFUGdnL0N2a0IrMXZDaUdaUmtYaGM2UGJoWDBQ?= =?utf-8?B?WnlCRUN0dkpGTXVZbGdqVGpZRGNUU09Tei9iS3NOZlI3akJiZXlZNitnZXlG?= =?utf-8?B?SkkvK2MrZ0ZYR3dhem1qYVg0eWZQQ2NlUXVybX X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM3PR02MB10256.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: da4efa40-f920-4ad1-2702-08dcba2e417a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2024 17:51:40.9498 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e741d71c-c6b6-47b0-803c-0f3b32b07556 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fG//o9faD36f3VRSOe+JaVkTcQrxPljzPt/Nw9BCvKNL8kfiwDklXprP0eyCu2iU X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6978 X-TM-SNTS-SMTP: C24C0FAEA47B27DA8D51C54522879B83B99816B9E3D0680D8055FA7DEAD1A5B52 X-Proofpoint-GUID: 2e--GU8xEi_9cmrBlQrrlyiprtCmwesS X-Proofpoint-ORIG-GUID: 2e--GU8xEi_9cmrBlQrrlyiprtCmwesS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-11_16,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 mlxlogscore=999 adultscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1011 priorityscore=1501 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408110134 Received-SPF: pass client-ip=67.231.149.140; envelope-from=dk068x@att.com; helo=mx0a-00191d01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147613 Archived-At: I=E2=80=99ve managed to resolve this. I=E2=80=99m not certain exactly what= was wrong, but I found something that=E2=80=99s been in my shell-mode-hook= that has literally been there for decades, which when commented out, doesn= =E2=80=99t show the symptom anymore. After examining eshell for a couple of days, I conclude that it=E2=80=99s a= n interesting package, but I hope I don=E2=80=99t have to use it. It would = require too many changes to my existing processes. From: help-gnu-emacs-bounces+dk068x=3Datt.com@gnu.org On Behalf Of Eli Zaretskii Sent: Friday, August 9, 2024 3:26 AM To: Help-gnu-emacs@gnu.org Subject: Re: After reinstalling Cygwin, executing shell function in Emacs g= ets "cannot set terminal process group" > From: "KARR, DAVID" > Date: Thu, 8 Aug= 2024 23:=E2=80=8A55:=E2=80=8A59 +0000 > > I've been using Cygwin and Cygwi= n Emacs for a long time on Windows 11. I have to reinstall it every couple = of years. I just reinstalled Cygwin > From: "KARR, DAVID" > > Date: Thu, 8 Aug 2024 23:55:59 +0000 > > I've been using Cygwin and Cygwin Emacs for a long time on Windows 11. I= have to reinstall it every couple of years. I just reinstalled Cygwin tod= ay, and after having to remember a bunch of things, I finally got my Emacs = window again. However, the main thing I use it for is giving me a new prob= lem. I have a wrapper function that creates a new buffer and runs "(shell)= ". This has literally worked fine for decades. Today, it worked fine for = the first shell. The package allows me to manage multiple shell buffers. W= hen I tried to create the second shell buffer, it said this: > > bash: cannot set terminal process group (-1): Inappropriate ioctl for= device > bash: no job control in this shell > > If I just kill this buffer at this point, I can safely interact with the = first shell buffer. However, if I execute any command, it seems to execute= it in an infinite loop, and if I then kill the buffer, the Emacs process i= s completely hung, and I have to kill the entire process. > > This is using Emacs v29.4. Sounds to me like something that you should first report to the Cygwin mailing list. Crystal ball says that the new version of Cygwin which you installed does something differently wrt IOCTL on console devices.