delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Tue, 8 May 2001 15:07:34 -0400 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | Re: Brainstorming a fix for CTRL-C handling in an emacs shell buf fer (non-TTY) |
Message-ID: | <20010508150734.B25966@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
References: | <8F23E55D511AD5119A6800D0B76FDDE11E1023 AT cpex3 DOT channelpoint DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <8F23E55D511AD5119A6800D0B76FDDE11E1023@cpex3.channelpoint.com>; from troy.noble@channelpoint.com on Tue, May 08, 2001 at 12:45:27PM -0600 |
On Tue, May 08, 2001 at 12:45:27PM -0600, Troy Noble wrote: >Thanks for your patience. > >I tried the latest patch you checked in for exceptions.cc. >That didn't do it either. I have another alternative though. > >I'm beginning to regret the "brainstorming" in the subject of this >thread, as I'm now feeling somewhat stumped and stupid. I've fixed >it 4 different ways now, but haven't quite hit on the right one. >Sorry for being dense. > >Maybe this code that calls set_console_ctty needs to be moved out >of dtable.cc:stdio_init and into the constructor or init method of >the fhandler_console? It's already in the open method for any tty device. The problem is that stdio_init gets called all the >time when >a process starts, and since ctty<0 and GetConsoleCP() is always >going to return > 0, my ctty and tty->pgid always get set. The set_console_ctty function is only called when a cygwin program is invoked by a non-cygwin program. >I don't think you'd want to run this except when you were creating actual >fhandler_console instances, right? A program should have a controlling tty even if it doesn't have a handle open to the tty. That means that you can't wait until you initialize a console or a tty before seting the process's controlling tty. So, I guess the question is, why is t->getpgid != myself->pid when ctrl_c_handler is invoked? What is the value of those two variables? cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |