From: Ulrich Drepper <drepper@redhat.com>
To: Alex Davis <alex14641@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: signal handling issue.
Date: Tue, 18 May 2004 23:18:50 -0700 [thread overview]
Message-ID: <40AAFC4A.5080309@redhat.com> (raw)
In-Reply-To: <20040519054507.63816.qmail@web50201.mail.yahoo.com>
Fix your code:
> static void handler(int s) {
> printf("caught signal %d\n", s);
> longjmp(env, 1);
> }
Use siglonjmp() and sigsetjmp(). You are not allowed to use longjmp()
to jump from a signal handler.
[How many times have I explained this here now?]
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
next prev parent reply other threads:[~2004-05-19 6:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-19 5:45 signal handling issue Alex Davis
2004-05-19 6:18 ` Ulrich Drepper [this message]
2004-05-19 11:39 ` Richard B. Johnson
-- strict thread matches above, loose matches on Subject: below --
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=40AAFC4A.5080309@redhat.com \
--to=drepper@redhat.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