From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: After reinstalling Cygwin, executing shell function in Emacs gets "cannot set terminal process group" Date: Fri, 09 Aug 2024 13:25:58 +0300 Message-ID: <86plqikn61.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29714"; mail-complaints-to="usenet@ciao.gmane.io" To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 09 12:26:36 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 1scMpP-0007ZC-Vk for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Aug 2024 12:26:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scMp0-0002OP-3x; Fri, 09 Aug 2024 06:26:11 -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 1scMoy-0002Le-CA for Help-gnu-emacs@gnu.org; Fri, 09 Aug 2024 06:26:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scMoy-00087x-2s for Help-gnu-emacs@gnu.org; Fri, 09 Aug 2024 06:26:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=b8AYJT/m91saUj/X7V/eVB98FdpyAYIOqB3iyrF7/Mk=; b=TFH3rbEoYgQM je23rvC6ip12S8NYmp1rvNlLvUHpOitIi+HR1piDaiHJKLQJ3/tMnZpLW9FGTYggJ5CzWkTtor17N Er76kFqwy/6ZO5mr31uHsROXN8TnnsuLMOPWiS0WYkPyLEhwMtk4r1MCHKSdzWtp+UWHsJZNqUgOv Vo0sQ9h9jdCSyKbQBkijBtBETsqiLn7WSU5YFTtGlSl2HR0RIQDmRvJ01zm/+JFngw/mbSbo6iVn9 VNuyJDTtON2Rxe0EIGZS0iP+u7qlVTGwwB9ML/1WzaNJw/SoNNlOSnH53LOn37G73IyQc7LKbFGjM RQzm2Pfh9eDwGmn34jZMpA==; In-Reply-To: (dk068x@att.com) 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:147571 Archived-At: > 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 today, 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 problem. 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. When 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 is 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.