delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/24/09:13:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Originating-IP: [24.34.177.222]
X-Originating-Email: [mgainty AT hotmail DOT com]
From: "Martin Gainty" <mgainty AT hotmail DOT com>
To: "David Sharp" <david DOT m DOT sharp AT btopenworld DOT com>, <cygwin AT cygwin DOT com>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0307232158590 DOT 26427-100000 AT slinky DOT cs DOT nyu DOT edu> <3F1FD3E4 DOT 5030804 AT btopenworld DOT com>
Subject: Re: How to diagnose Cygwin / Windows shutdown problem
Date: Thu, 24 Jul 2003 09:12:55 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <LAW10-OE38CIsQN3CQ4000011d8@hotmail.com>
X-OriginalArrivalTime: 24 Jul 2003 13:12:51.0629 (UTC) FILETIME=[4956C5D0:01C351E5]

do any of the cygwin Libraries have a signal function?
If so does the cygwin singal function handle the signal values
      SIGABRT Abnormal termination
      SIGFPE Floating-point error
      SIGILL Illegal instruction
      SIGINT CTRL+C signal
      SIGSEGV Illegal storage access
      SIGTERM Termination request

Besides opening and closing the windows I sincerely  doubt cygwin is sending
or receiving any window events..

Something to think about..
-Martin
----- Original Message -----
From: "David Sharp" <david DOT m DOT sharp AT btopenworld DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Thursday, July 24, 2003 5:41 AM
Subject: Re: How to diagnose Cygwin / Windows shutdown problem


> I don't know for sure either, but by the end of a day, it is not unusual
> for me to see multiple instances of bash.exe within my task manager,
> despite having closed them in windows. Therefore I don't think there is
> windows->posix signal translation, just the other way around.
>
> Igor Pechtchanski wrote:
>
> >There is such a mechanism on Win2k.  I don't think there is one on Win9x.
> >This thread seems to indicate that there isn't one on WinXP, either, at
> >least not for shutdown messages.
> > Igor
> >
> >On Wed, 23 Jul 2003, Andrew DeFaria wrote:
> >
> >
> >
> >>Randall R Schulz wrote:
> >>
> >>
> >>
> >>>Andrew,
> >>>
> >>>Cygwin apps don't have a Windows event handler do they?
> >>>
> >>>
> >>To tell you the truth... I don't know for sure.
> >>
> >>
> >>
> >>>The two programming models (Win32 and POSIX) are fundamentally
> >>>different, so based on my very limited understanding, it seems that
> >>>Cygwin itself (code in Cygwin1.dll) would have to intercept these
> >>>OS-generated events and translate them into POSIX signals (SIGUP, say).
> >>>
> >>>
> >>Makes sense to me! I would suspect that when one clicks on the close
> >>button in the window frame that generates a Windows event that is
> >>translated somehow to send a kill signal to the shell. If true then
> >>there is already a mechanism for Win Event -> POSIX signal.
> >>
> >>
> >>
> >>>Randall Schulz
> >>>
> >>>At 17:16 2003-07-23, Andrew DeFaria wrote:
> >>>
> >>>
> >>>
> >>>>Randall R Schulz wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Cygwin apps don't know about and cannot respond to the
> >>>>>system-generated messages that request that applications quit in
> >>>>>preparation for the system to shut down or the user to log off.
> >>>>>
> >>>>>
> >>>>"Cannot respond to"? When a system-generated message that requests
> >>>>that applications quit in preparation for the systme to shut down or
> >>>>the user to log off why can Cygwin apps (in particular bash or other
> >>>>shell) simply do what it would have done if TMOUT was just triggered?
> >>>>
> >>>>      TMOUT  If set to a value greater than zero, TMOUT  is  treated
> >>>>as  the
> >>>>             default timeout for the read builtin.  The select
> >>>>command termi-
> >>>>             nates if input does not arrive after TMOUT seconds when
> >>>>input is
> >>>>             coming  from  a terminal.  In an interactive shell, the
> >>>>value is
> >>>>             interpreted as the number of seconds to  wait  for
> >>>>input  after
> >>>>             issuing  the  primary prompt.  Bash terminates after
> >>>>waiting for
> >>>>             that number of seconds if input does not arrive.
> >>>>
> >>>>
> >
> >
> >
>
>
>
> --
> 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/
>
>

--
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