public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David Rothenberger <daveroth@acm.org>
To: cygwin <cygwin@cygwin.com>
Subject: Avoid sending SIGINT to native child process?
Date: Sun, 30 Apr 2017 13:12:00 -0000	[thread overview]
Message-ID: <c9aab181-aa6d-f724-9f1e-2497b16609f6@acm.org> (raw)

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

             reply	other threads:[~2017-04-29  2:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-30 13:12 David Rothenberger [this message]
2017-04-30 17:30 ` Thomas Wolff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9aab181-aa6d-f724-9f1e-2497b16609f6@acm.org \
    --to=daveroth@acm.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).