Re: signal handling issue.

From: Ulrich Drepper
Date: Wed May 19 2004 - 01:22:12 EST


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 â
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/