Messages in this thread | | | Date | Tue, 18 May 2004 23:18:50 -0700 | From | Ulrich Drepper <> | Subject | Re: signal handling issue. |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |