| www.delorie.com/archives/browse.cgi | search |
| Date: | Tue, 15 Nov 2005 14:39:49 -0500 (EST) |
| From: | Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> |
| Reply-To: | cygwin AT cygwin DOT com |
| To: | Konrad Eisele <eiselekd AT web DOT de> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | Re: Can I get a sigint when the bash window closed with close window's button ? |
| In-Reply-To: | <896835389@web.de> |
| Message-ID: | <Pine.GSO.4.63.0511151424250.15491@slinky.cs.nyu.edu> |
| References: | <896835389 AT web DOT de> |
| MIME-Version: | 1.0 |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Tue, 15 Nov 2005, Konrad Eisele wrote:
> When th cygwin bash window is closed by clicking on the window's close
> button the the appliaction gets killed without recieving a sigint or any
> atexit called. Is there a way to be able to run cleanup code when the
> application is about to be killed?
According to exceptions.cc, a SIGHUP will be sent to bash in this case.
Are you handling the right signal?
BTW, the atexit() callback also should be called -- do you have a simple
testcase to reproduce the problem?
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |