Re: Sending signals to a subprocess

2010-10-24 Thread Andy Koppe
On 24 October 2010 03:51, Ken Brown wrote: On 10/20/2010 4:32 PM, Christopher Faylor wrote: I think I'm seeing some pattern to the way Linux handles [tcgetpgrp] and I should be able to make Cygwin work the same way. This seems to be fixed in the latest snapshot, as far as emacs is concerned.

Re: Sending signals to a subprocess

2010-10-24 Thread Christopher Faylor
On Sat, Oct 23, 2010 at 10:51:38PM -0400, Ken Brown wrote: On 10/20/2010 4:32 PM, Christopher Faylor wrote: On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see

Re: Sending signals to a subprocess

2010-10-24 Thread Christopher Faylor
On Sun, Oct 24, 2010 at 12:40:51PM -0400, Christopher Faylor wrote: I'll fix it though. The problem should be fixed in the snapshot that is currently being built. It will show up at cygwin.com soon. cgf -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Sending signals to a subprocess

2010-10-24 Thread Ken Brown
On 10/24/2010 2:55 PM, Christopher Faylor wrote: On Sun, Oct 24, 2010 at 12:40:51PM -0400, Christopher Faylor wrote: I'll fix it though. The problem should be fixed in the snapshot that is currently being built. Confirmed. Thanks. Ken -- Problem reports:

Re: Sending signals to a subprocess

2010-10-23 Thread Ken Brown
On 10/20/2010 4:32 PM, Christopher Faylor wrote: On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html)

Re: Sending signals to a subprocess

2010-10-20 Thread Ken Brown
On 10/20/2010 1:09 AM, Andy Koppe wrote: On 20 October 2010 04:17, Ken Brownkbr...@cornell.edu wrote: Emacs creates a subprocess that runs an interactive bash shell. Emacs wants to get the PGID of the foreground process group associated to the tty of this shell, and it does this on Linux via

Re: Sending signals to a subprocess

2010-10-20 Thread Andy Koppe
On 20 October 2010 12:21, Ken Brown wrote: On 10/20/2010 1:09 AM, Andy Koppe wrote: Emacs creates a subprocess that runs an interactive bash shell.  Emacs wants to get the PGID of the foreground process group associated to the tty of this shell, and it does this on Linux via TIOCGPGRP (or

Re: Sending signals to a subprocess

2010-10-20 Thread Andy Koppe
On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html) because she saw Linux doing that.  But when I run Corinna's test on my Linux system, I get -1 where she got 0.  So

Re: Sending signals to a subprocess

2010-10-20 Thread Christopher Faylor
On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html) because she saw Linux doing that. ??But when I run

Re: Sending signals to a subprocess

2010-10-20 Thread Ken Brown
On 10/20/2010 4:32 PM, Christopher Faylor wrote: On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html)

Re: Sending signals to a subprocess

2010-10-19 Thread Ken Brown
On 10/18/2010 4:18 PM, Christopher Faylor wrote: On Mon, Oct 18, 2010 at 03:40:21PM -0400, Ken Brown wrote: On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a

Re: Sending signals to a subprocess

2010-10-19 Thread Christopher Faylor
On Tue, Oct 19, 2010 at 09:32:34AM -0400, Ken Brown wrote: On 10/18/2010 4:18 PM, Christopher Faylor wrote: On Mon, Oct 18, 2010 at 03:40:21PM -0400, Ken Brown wrote: On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17

Re: Sending signals to a subprocess

2010-10-19 Thread Ken Brown
On 10/19/2010 10:15 AM, Christopher Faylor wrote: On Tue, Oct 19, 2010 at 09:32:34AM -0400, Ken Brown wrote: On 10/18/2010 4:18 PM, Christopher Faylor wrote: On Mon, Oct 18, 2010 at 03:40:21PM -0400, Ken Brown wrote: On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at

Re: Sending signals to a subprocess

2010-10-19 Thread Christopher Faylor
On Tue, Oct 19, 2010 at 11:17:39PM -0400, Ken Brown wrote: On 10/19/2010 10:15 AM, Christopher Faylor wrote: I would like to create a STC that would let me investigate this further, but I don't know enough programming to do it. It ought to be completely trivial. Here's what happens: Emacs

Re: Sending signals to a subprocess

2010-10-19 Thread Andy Koppe
On 20 October 2010 04:17, Ken Brown kbr...@cornell.edu wrote: Emacs creates a subprocess that runs an interactive bash shell.  Emacs wants to get the PGID of the foreground process group associated to the tty of this shell, and it does this on Linux via TIOCGPGRP (or equally well tcgetpgrp).  

Re: Sending signals to a subprocess

2010-10-18 Thread Oleksandr Gavenko
On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. This off top but I use native Emacs and have annoying bug: in C-x shell if I start cygwin app it can not be broken by

Re: Sending signals to a subprocess

2010-10-18 Thread Ken Brown
On 10/18/2010 4:46 AM, Oleksandr Gavenko wrote: On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. This off top but I use native Emacs and have annoying bug: in C-x

Re: Sending signals to a subprocess

2010-10-18 Thread Oleksandr Gavenko
On 18.10.2010 15:36, Ken Brown wrote: On 10/18/2010 4:46 AM, Oleksandr Gavenko wrote: On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. This off top but I use native

Re: Sending signals to a subprocess

2010-10-18 Thread Ken Brown
On 10/18/2010 9:12 AM, Oleksandr Gavenko wrote: On 18.10.2010 15:36, Ken Brown wrote: On 10/18/2010 4:46 AM, Oleksandr Gavenko wrote: On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to

Re: Sending signals to a subprocess

2010-10-18 Thread Christopher Faylor
On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. A symptom from the user's point of view is that one cannot

Re: Sending signals to a subprocess

2010-10-18 Thread Ken Brown
On 10/18/2010 10:58 AM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. A

Re: Sending signals to a subprocess

2010-10-18 Thread Andy Koppe
On 18 October 2010 18:27, Ken Brown wrote: On 10/18/2010 10:58 AM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is

Re: Sending signals to a subprocess

2010-10-18 Thread Christopher Faylor
On Mon, Oct 18, 2010 at 06:40:19PM +0100, Andy Koppe wrote: On 18 October 2010 18:27, Ken Brown wrote: On 10/18/2010 10:58 AM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a

Re: Sending signals to a subprocess

2010-10-18 Thread Christopher Faylor
On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. A symptom from the user's point of view is that one cannot

Re: Sending signals to a subprocess

2010-10-18 Thread Ken Brown
On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. A symptom

Re: Sending signals to a subprocess

2010-10-18 Thread Christopher Faylor
On Mon, Oct 18, 2010 at 03:40:21PM -0400, Ken Brown wrote: On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which

Re: Sending signals to a subprocess

2010-10-18 Thread Ken Brown
On 10/18/2010 4:18 PM, Christopher Faylor wrote: On Mon, Oct 18, 2010 at 03:40:21PM -0400, Ken Brown wrote: On 10/18/2010 2:34 PM, Christopher Faylor wrote: On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote: On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a

Re: Sending signals to a subprocess

2010-10-16 Thread Ken Brown
On 10/16/2010 1:17 PM, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. A symptom from the user's point of view is that one cannot interrupt a process in shell mode by typing C-c C-c. I've