From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52650 invoked by alias); 29 Apr 2017 02:35:13 -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 51201 invoked by uid 89); 29 Apr 2017 02:35:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=academy, football, H*MI:acm, taught X-HELO: resqmta-po-12v.sys.comcast.net Received: from resqmta-po-12v.sys.comcast.net (HELO resqmta-po-12v.sys.comcast.net) (96.114.154.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Apr 2017 02:35:09 +0000 Received: from resomta-po-12v.sys.comcast.net ([96.114.154.236]) by resqmta-po-12v.sys.comcast.net with SMTP id 4IE1dKuucjQNS4IE2dWaXf; Sat, 29 Apr 2017 02:35:10 +0000 Received: from [10.1.5.114] ([216.34.91.132]) by resomta-po-12v.sys.comcast.net with SMTP id 4IBxdO5PkdPKD4IBzdcFqF; Sat, 29 Apr 2017 02:33:08 +0000 To: cygwin From: David Rothenberger Subject: Avoid sending SIGINT to native child process? Message-ID: Date: Sun, 30 Apr 2017 13:12:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfE3sJs3jv++jFKyDPFvsO+/uW9rufq13kiyBs7Nxr23ZVz6GljS146tMdIVlLSSDAx8epWtzYKg4fXMRnXv7MEcDJ36eM97eS2PiQfFlJUr9NP6/uRSA 0qXzD/oj1xA/IREjGKBQk0yEWQgE6P3I5JbRniFJ66B8xHKa8/zJf4Mc X-IsSubscribed: yes Reply-To: cygwin@cygwin.com X-SW-Source: 2017-04/txt/msg00368.txt.bz2 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. -- David Rothenberger ---- daveroth@acm.org Academy: A modern school where football is taught. Institute: An archaic school where football is not taught. -- 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