svn commit: trunk/uClibc/test/setjmp
vapier at uclibc.org
vapier at uclibc.org
Fri Nov 17 10:18:47 PST 2006
Author: vapier
Date: 2006-11-17 10:18:46 -0800 (Fri, 17 Nov 2006)
New Revision: 16567
Log:
fix from Paul Brook for ISO C violation in terms of handling of modifying automatic local variables between setjmp/longjmp
Modified:
trunk/uClibc/test/setjmp/tst-vfork-longjmp.c
Changeset:
Modified: trunk/uClibc/test/setjmp/tst-vfork-longjmp.c
===================================================================
--- trunk/uClibc/test/setjmp/tst-vfork-longjmp.c 2006-11-17 16:01:05 UTC (rev 16566)
+++ trunk/uClibc/test/setjmp/tst-vfork-longjmp.c 2006-11-17 18:18:46 UTC (rev 16567)
@@ -66,7 +66,9 @@
const char *prog;
jmp_buf env;
sigjmp_buf sigenv;
- int cnt, max, ret;
+ int max;
+ /* values modified between setjmp/longjmp cannot be local to this func */
+ static int cnt, ret;
memset(&orig_mask, 0x00, sizeof(orig_mask));
ret = sigprocmask(SIG_BLOCK, NULL, &orig_mask);
More information about the uClibc-cvs
mailing list