From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11969 invoked by alias); 6 May 2012 02:40:25 -0000 Received: (qmail 11934 invoked by uid 22791); 6 May 2012 02:40:23 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 May 2012 02:40:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQrOG-0000qk-5u for cygwin@cygwin.com; Sun, 06 May 2012 04:40:04 +0200 Received: from cpe-174-097-241-035.nc.res.rr.com ([174.97.241.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 04:40:04 +0200 Received: from greer by cpe-174-097-241-035.nc.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 04:40:04 +0200 To: cygwin@cygwin.com From: Trey Greer Subject: Re: Date: Sun, 06 May 2012 02:40:00 -0000 Message-ID: References: <4F5D0025.9040309@cornell.edu> <4F5D0141.9060400@cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-05/txt/msg00113.txt.bz2 Jack gmail.com> writes: > > Ken Brown cornell.edu> writes: > > > > > Another (easier) thing you could do is try various snapshots between > > versions 1.7.10 and 1.7.11 of cygwin1.dll and pinpoint exactly when the > > problem first occurred. > > > > Ken > > > > > > Sadly, even the oldest cygwin1.dll snapshot (from 7/30/11) seems to have this > issue. There is a pointer on the emacs lists (for MacOS) that says I should > recompile with #define DONT_REOPEN_PTYS to avoid the "inappropriate ioctl for > device" problem. I was hoping to avoid recompiling emacs but I guess I'll give > that a try. :) > > Thanks for the ideas Ken. > > Jack > > Looking through the native (Windows) emacs 23.4.1 source, I don't see how cygwin bash job control could ever have worked. When I do a ctrl-C ctrl-Z (emacs speak for suspend job) in the bash shell in shell mode, emacs gives me the message 'No SIGTSTP support'. Poking through the source, this appears to be because there is no SIGTSTP defined in windows, or at least not in the configuration header emacs-23.4/src/s/ms-w32.h. Emacs in windows does not have PTYS (HAVE_PTYS is not defined in s/ms-w32.h) so shell-mode opens the cygwin bash shell with input and output pipes instead of ptys. A recent change to bash (as of bash-4.1-alpha) causes bash to refuse job control if the controlling terminal is not a tty. See item jj. in the bash-4.0-alpha entry in the changelog bash-4.1.10-4/src/bash-4.1/CHANGES. It looks to me like suspend (ctrl-C ctrl-Z) never worked for cygwin bash within native windows gnu emacs, but I certainly could be wrong. I did try defeating the tty test mentioned above (in jobs.c in the bash source). Indeed, I was able to spawn jobs in the background and kill them. Just no signals from emacs. -- Trey -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple