This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: signal handling


This fixes a bug which causes signal handlers to fail when running
libgcj with pthreads.  I have committed this patch.

Andrew.


1999-07-01  Andrew Haley  <aph@cygnus.com>

        * include/i386-signal.h: Replace sigaction () with __sigaction ().
        This is a workaround for a bug in glibc's pthreads package which
        doesn't deliver any sigcontext information to a signal handler.

Index: include/i386-signal.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/i386-signal.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- i386-signal.h       1999/05/20 08:26:52     1.3
+++ i386-signal.h       1999/07/01 10:30:58     1.4
@@ -114,7 +114,7 @@
     act.sa_handler = catch_segv;                               \
     sigemptyset (&act.sa_mask);                                        \
     act.sa_flags = 0;                                          \
-    sigaction (SIGSEGV, &act, NULL);                           \
+    __sigaction (SIGSEGV, &act, NULL);                         \
   }                                                            \
 while (0)  
 
@@ -127,7 +127,7 @@
     act.sa_handler = catch_fpe;                                        \
     sigemptyset (&act.sa_mask);                                        \
     act.sa_flags = 0;                                          \
-    sigaction (SIGFPE, &act, NULL);                            \
+    __sigaction (SIGFPE, &act, NULL);                          \
   }                                                            \
 while (0)  
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]