X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.3 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Date: Thu, 10 May 2012 12:30:30 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <1211135919.20120510123030@mtu-net.ru>
To: Daniel Colascione <dancol@dancol.org>, cygwin@cygwin.com
Subject: Re: 1.7.13/1.7.14: Issue with command prompt not returning when forking process
In-Reply-To: <4FA6E1EC.1000603@dancol.org>
References: <20120505083518.GA2428@calimero.vinschen.de> <A1960FFE0F9B444B8512E826965B70763A934CE68A@ESESSCMS0362.eemea.ericsson.se> <20120506200951.GB11611@ednor.casa.cgf.cx> <4FA6E1EC.1000603@dancol.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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

Greetings, Daniel Colascione!

>> [cmd /c start foo not going into the background]
>> It is not likely to change.

> What worries me isn't that the behavior changed, but that the new
> behavior is weird. SIGINT doesn't work on processes spawned by cmd /c
> start.

> Try it yourself:

> $ cmd /c start notepad

> The weird thing is that cmd seems to have a PID, but sending a signal
> to this process fails with ESRCH --- except for sending signal 0,
> which succeeds.

That's expected - non-cygwin applications don't know anything about signals.
Even if, for example, SIGKILL would work on cmd (forcefully terminating it),
Notepad will stay.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 10.05.2012, <12:28>

Sorry for my terrible english...


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

