Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: main.c notification_engine.c Log Message: * Up sleep in worker thread * Additional null check in remote thumbnailer =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/main.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- main.c 20 Oct 2005 08:45:54 -0000 1.1 +++ main.c 2 Jan 2006 12:00:29 -0000 1.2 @@ -7,9 +7,31 @@ #include "include/entropy.h" #include <Ewl.h> +void +entropy_sigseg_act(int x, siginfo_t *info, void *data) +{ + void *array[255]; + size_t size; + + write(2, "**** SEGMENTATION FAULT ****\n", 29); + write(2, "**** Printing Backtrace... *****\n\n", 34); + + usleep(50000000); +} + int main() { + struct sigaction action; + + action.sa_sigaction = entropy_sigseg_act; + action.sa_flags = SA_ONSTACK | SA_NODEFER | SA_RESETHAND | SA_SIGINFO; + sigemptyset(&action.sa_mask); + sigaction(SIGSEGV, &action, NULL); + + entropy_core* core = entropy_core_init(); for (;;) {} + + return 0; } =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/notification_engine.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- notification_engine.c 2 Jan 2006 09:05:41 -0000 1.5 +++ notification_engine.c 2 Jan 2006 12:00:29 -0000 1.6 @@ -153,7 +153,7 @@ } - usleep(50); /*Allow the CPU to have a rest*/ + usleep(500); /*Allow the CPU to have a rest*/ } pthread_mutex_unlock(¬ify->loop_mutex); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs