LKML Archive on
help / color / mirror / Atom feed
From: Ulrich Drepper <>
To: Alex Davis <>
Subject: Re: signal handling issue.
Date: Tue, 18 May 2004 23:18:50 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

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 ❖

  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 Alex Davis
2004-05-19  6:18 ` Ulrich Drepper [this message]
2004-05-19 11:39 ` Richard B. Johnson
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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: signal handling issue.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).