From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Alex Davis <alex14641@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: signal handling issue.
Date: Wed, 19 May 2004 07:39:10 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0405190734280.2283@chaos> (raw)
In-Reply-To: <20040519054507.63816.qmail@web50201.mail.yahoo.com>
On Tue, 18 May 2004, Alex Davis wrote:
> There appears to be a change between linux 2.4 and 2.6
> in how signals are handled. As a test, I wrote the program
> below:
>
> #include <stdio.h>
> #include <signal.h>
> #include <setjmp.h>
>
> static jmp_buf env;
>
> static void handler(int s) {
> printf("caught signal %d\n", s);
> longjmp(env, 1);
> }
[SNIPPED...]
A a couple years ago they changed the rules. You can't longjmp
from a signal handler anymore. There's some other function
call with 'sig' in it, like siglongjmp or something like
that. Ahh... here it is:
/usr/include/setjmp.h:extern void siglongjmp __P ((sigjmp_buf __env, int __val))
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5557.45 BogoMips).
Note 96.31% of all statistics are fiction.
next prev parent reply other threads:[~2004-05-19 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-19 5:45 Alex Davis
2004-05-19 6:18 ` Ulrich Drepper
2004-05-19 11:39 ` Richard B. Johnson [this message]
2004-05-19 5:56 Alex Davis
2004-05-19 6:56 Alex Davis
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=Pine.LNX.4.53.0405190734280.2283@chaos \
--to=root@chaos.analogic.com \
--cc=alex14641@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®