From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107995 invoked by alias); 29 Apr 2017 06:19:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 107985 invoked by uid 89); 29 Apr 2017 06:19:02 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Apr 2017 06:19:00 +0000 Received: from [192.168.178.45] ([95.91.213.111]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0M2pmM-1duoDN2ljq-00sf78 for ; Sat, 29 Apr 2017 08:18:59 +0200 Subject: Re: Avoid sending SIGINT to native child process? To: cygwin@cygwin.com References: From: Thomas Wolff Message-ID: Date: Sun, 30 Apr 2017 17:30:00 -0000 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 X-SW-Source: 2017-04/txt/msg00369.txt.bz2 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