delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/13/02:58:33

X-Spam-Check-By: sourceware.org
Message-ID: <11574352.post@talk.nabble.com>
Date: Thu, 12 Jul 2007 23:58:15 -0700 (PDT)
From: patrickinminneapolis <patrickinminneapolis AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: kill -2 is too powerful
MIME-Version: 1.0
X-Nabble-From: patrickinminneapolis AT gmail DOT com
X-IsSubscribed: yes
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

I have a VB.net Console App which catches "Ctrl-C" and then gives the user an
option "e(x)it \ (r)un".  I learned that I needed to set CYGWIN = "notty"
and so now the console app catches Ctrl-C properly within a Cygwin console.
I need to run the program as a service however, net start IB, and then I use
pslist to view its process number and do a kill -2 PID I was hoping for my
exit/run prompt, but it terminated instead. Does anyone know what's going on
or a better way to do this without reprogramming the VB.NET code? 

-- 
View this message in context: http://www.nabble.com/kill--2-is-too-powerful-tf4072624.html#a11574352
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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