Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_cpu.c
Log Message:
detect round 2
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_cpu.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- evas_cpu.c 3 Apr 2005 15:31:35 -0000 1.22
+++ evas_cpu.c 3 Apr 2005 15:48:47 -0000 1.23
@@ -7,7 +7,7 @@
#include <setjmp.h>
#ifndef WIN32
-static sigjmp_buf detect_buf, detect_buf2;
+static sigjmp_buf detect_buf;
#endif
static int cpu_feature_mask = 0;
@@ -25,7 +25,7 @@
static void
evas_common_cpu_catch_segv(int sig)
{
- siglongjmp(detect_buf2, 1);
+ siglongjmp(detect_buf, 1);
}
#endif
@@ -89,16 +89,13 @@
act.sa_flags = SA_RESTART;
sigemptyset(&act.sa_mask);
sigaction(SIGILL, &act, &oact);
- if (sigsetjmp(detect_buf, 1))
- {
- sigaction(SIGILL, &oact, NULL);
- return 0;
- }
+
act.sa_handler = evas_common_cpu_catch_segv;
act.sa_flags = SA_RESTART;
sigemptyset(&act.sa_mask);
sigaction(SIGSEGV, &act, &oact2);
- if (sigsetjmp(detect_buf2, 1))
+
+ if (sigsetjmp(detect_buf, 1))
{
sigaction(SIGILL, &oact, NULL);
sigaction(SIGSEGV, &oact2, NULL);
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs