X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4CC39F3A.8040808@cornell.edu>
References: <20101018183438.GA25878@ednor.casa.cgf.cx>	<4CBCA2A5.4010601@cornell.edu>	<20101018201805.GA26254@ednor.casa.cgf.cx>	<4CBD9DF2.3090804@cornell.edu>	<20101019141557.GA31784@ednor.casa.cgf.cx>	<4CBE5F53.30402@cornell.edu>	<AANLkTikUc9i0h-g3QHGzqKKRGoJf0-xSPgu6wy1U+zZ=@mail.gmail.com>	<4CBED0C3.6080001@cornell.edu>	<AANLkTinoRNBvUpiCGpVWXKLh4kYtyF=USrVhSuOX7_18@mail.gmail.com>	<AANLkTi=RPo4mvZzB_NTwwJ_2tX_R4OcjPLH6M5==4VrW@mail.gmail.com>	<20101020203254.GA11903@ednor.casa.cgf.cx>	<4CC39F3A.8040808@cornell.edu>
Date: Sun, 24 Oct 2010 06:10:37 +0100
Message-ID: <AANLkTik+ma_d6dQqf5tboS2v-vTnwg+ki-b7FL2v9o0C@mail.gmail.com>
Subject: Re: Sending signals to a subprocess
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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 concern=
ed.

Works for mintty too. Thanks very much!

> =C2=A0I no longer see any difference between Cygwin and Linux there. =C2=
=A0I also get
> the expected results when I run the test cases that Andy posted. =C2=A0Bu=
t when I
> run the original test case that you posted in
>
> =C2=A0http://cygwin.com/ml/cygwin/2010-10/msg00395.html
>
> I'm getting strange behavior. =C2=A0I ran it with no argument, getting
>
> 0 =3D tcgetpgrp(4)
> 0 =3D ioctl(fd, TIOCGPGRP, &pid), pid =3D 0
>
> but then the terminal seemed to hang, and I didn't get a new prompt. =C2=
=A0I
> tried this both in mintty and xterm.

It worked for me a couple of times before I got the hang. Locking trouble?

Andy

--
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

