Browse Source

* fixed solaris signal handling

git-svn-id: trunk@2881 -
florian 19 years ago
parent
commit
5671bf276c
2 changed files with 4 additions and 3 deletions
  1. 3 3
      rtl/solaris/signal.inc
  2. 1 0
      rtl/solaris/sparc/sighnd.inc

+ 3 - 3
rtl/solaris/signal.inc

@@ -63,9 +63,9 @@ const
   SIGCANCEL  = 36;      { thread cancellation signal used by libthread }
   SIGLOST    = 37;      { resource lost (eg, record-lock lost) }
 
-  SIG_BLOCK   = 0;
-  SIG_UNBLOCK = 1;
-  SIG_SETMASK = 2;
+  SIG_BLOCK   = 1;
+  SIG_UNBLOCK = 2;
+  SIG_SETMASK = 3;
 
   SIG_DFL = 0 ;
   SIG_IGN = 1 ;

+ 1 - 0
rtl/solaris/sparc/sighnd.inc

@@ -69,6 +69,7 @@ begin
         res:=214;
       end;
   end;
+  reenable_signal(sig);
   { give runtime error at the position where the signal was raised }
   if res<>0 then
     HandleErrorAddrFrame(res,addr,nil);