Re: signal handling issue.

Ulrich Drepper
2004-05-19T06:19:44Z

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 ❖