X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ttj5CWl/731nyu5p 4Of4FBeEsUjt5agMXebmVpoUWtRyaMsgkoW4J4QkqZfpfH7TKTlbTzOfDzVA6HtL Uc5nj2pFUBgpPdFNuFHdaKD+18R/6hMdAERXNKWIvFDm3tUCQ1mNUAoUUo8wwn53 igS9FMRDcC+fQrG4grOSk2LgwGc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=/HeNLH8xY0MY+MkB3xITm6 agx30=; b=NaiTygzoZliE00iLPpB4nKXSPuVm9xz5b3sGonJYI5BLcG+Vw7Lv0s QVvvkg+X+i21944WmKg8TOC1kGVFr4DgvqrLdf2eyOYvLDKfQK3lkV4adjcp//1B ku8Jccx+HSBVVTIqTqOHfjWb9Q7JY4j4xfWY9U65Ui4pGHMP7/5BA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:sk:mrelaye, H*RU:sk:mrelaye, H*r:sk:mrelaye, bash X-HELO: mout.kundenserver.de Subject: Re: Avoid sending SIGINT to native child process? To: cygwin AT cygwin DOT com References: From: Thomas Wolff Message-ID: Date: Sat, 29 Apr 2017 08:18:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:oo66ns3HgCw=:/MJXg6/Av8hnZyGZocIBvp ky6xqo+TPI1VaCbgr6Y77giAnHmI53rZXumF0qhDuqz0iHl0QRdm4mAOQ6bL4sYE1txTz5MQz CWoCJHTDsMbCOq1FrzJe1I/KH2MQay3WKAvWhWRqB0VzTnBZMMvFCV2LwHhDOz+zWnMGI5p9/ 3HWqhYT233kzo+/wo8cGxl7pNQVYf56sNyxryDJuu2tzc8JXD0rzAktteUZCABp/G5Aq5hJLS L7zZCkB66BOtbuqraHbQe9gXWeW9cx9yRHKzKaSKJ5DoYp3eTZ+2yAWpY6JESzMpZRi40tKNq /juLkiQWQ6byA/8oxZF7TWG6ZNZeRAzhNL8BeSkm7bGCaoWsUraFoMROFsb+6Vs2pYac6IG6b GFaEmRmjWHx3U98l9y/LqUh1yIEPsT+pWCRkwLIw82dArPn734YcC04QSpBhodjV3CxOGlCK5 MfOnYCUhffyd8WMvXTtcCVjqtwKED6QI8oe1HuJe+vGyOPfdR2THhklz2D6TyZBnTClYQLCWh ZBgegcqu/N7cboUksv6l3tjCtKQsapPJ4xAPgIheWJdzTCFzxdEzLqeg0AJIkQ1fMkQ4FZ4oR 7FnS2snrB7AEKEH6jSAuvC7oHo2Nd5QT/vAqHu+1fVB1bLCgB3syIxfQheYccxNzuRQRZhDQl T8U6iXl/P6uVsDl9OPOF8wKUOiHlXWqz65wNi6ieaDPg4XXhc4+RWV0K3vJ6iR4MNuOMV73m7 Bhcte1dhjcVJ51E7 X-IsSubscribed: yes Am 29.04.2017 um 04:33 schrieb David Rothenberger: > Is there any way to prevent a SIGINT signal from propagating to a > background child Windows process? > > I'm trying to write a script to start a Java application server. I > want the script to trap Ctrl-C and send the app server a command to > shutdown cleanly, but it appears the Ctrl-C is immediately propagated > to the Java process, even though the script traps it. Signal handling interoperability is lacking more generally. Even SIGTSTP is propagated in such a way that the Windows application is terminated. (Try running notepad from bash, then type Ctrl-Z.) Thomas -- 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