delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/04/28/22:35:32

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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding:reply-to; q=dns; s=
default; b=iFZxkqX1YTj6E63U5fA+r+T/zs4pcjDlxqlJXUbJ59d6+U5GPt9X0
z2xpp6zpZZ7z9q5fYCXqYwex5hRGPWdOazsbE0zewqfS60caXnD68KMd+TcjcS7l
gaBN18fcWo/33A9828U/6LPQAZlnTmlQW6IfSE1MjeFa1xENMCue7Y=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding:reply-to; s=default; bh=
tPUkW4iFio/eEyRhZmhkUKnO79Q=; b=ufVteh5URrTThx7YWNzxM0FI4Fk5YAQN
DTYPKLqO9RgMnFThi/Tfb9f+kX30o3s5gN9q8nQufOxX2TDTi5EgI0wtfIrAZP5V
GpTR3OZPMJbM7Z6m3rEdgz+B1vQ+00kclNuJvLkeUt8bSIPqj0aa/L3Dp7rd2zFe
bZfUP8c6lmM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
To: cygwin <cygwin AT cygwin DOT com>
From: David Rothenberger <daveroth AT acm DOT org>
Subject: Avoid sending SIGINT to native child process?
Message-ID: <c9aab181-aa6d-f724-9f1e-2497b16609f6@acm.org>
Date: Fri, 28 Apr 2017 19:33:00 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1
MIME-Version: 1.0
X-CMAE-Envelope: MS4wfE3sJs3jv++jFKyDPFvsO+/uW9rufq13kiyBs7Nxr23ZVz6GljS146tMdIVlLSSDAx8epWtzYKg4fXMRnXv7MEcDJ36eM97eS2PiQfFlJUr9NP6/uRSA 0qXzD/oj1xA/IREjGKBQk0yEWQgE6P3I5JbRniFJ66B8xHKa8/zJf4Mc
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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 AT acm DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019