simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] gdb interrupt patch.


From: ken restivo
Subject: Re: [Simulavr-devel] gdb interrupt patch.
Date: Wed, 2 Jan 2002 09:45:01 -0800
User-agent: Mutt/1.3.25i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 02, 2002 at 10:00:46AM -0700, Theodore A. Roth wrote:
> :)
> :)I am happy to see, that you have found the bug with the not
> :)uninstalled signal handler. I started to write an email concerning
> :)this bug. Now it is fixed, but. As far as I remember, you should
> :)install the ignore function to a signal handler after you have got it.
> :)So
> :)
> :)static void catch_sigint( int sig )
> :){
> :)    if (sig == SIGINT)
> :)    {
> :)        signal(SIGINT, SIG_IGN);
> :)        __got_SIGINT++;
> :)    }
> :)}
> :)
> :)the correct code.
> 

my understanding is that this is os-specific. if i remember correctly, it is 
required on bsd and solaris, but not linux. linux signal() behaves more like 
sigaction(), and reinstalls the handler. the signal manpage in linux advises 
using sigaction anyway.

- -ken


- -- 
- ------------------
One world. Many gods. Plenty for everyone.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8M0cce8HF+6xeOIcRAg2nAJ9/BZhdGi+aLoAC5c8V0NB+v/rCywCfUW+f
jysyX8ZIXdfqz8e7Azt8tsE=
=Bt0x
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]