Ulrich Weigand wrote:

> On second thought, now that we don't actually have a timeout handler
> anymore, we might as well switch the SIGALRM handler back to automatic
> restart (just set sg_act.sa_flags to SA_RESTART when installing the
> handler).

Okay... that appears to work... attached is another patch.
The next step is to make sure breakpoints work !!
For that, we need interrupt allocation.

-- Ramon
diff -Nur freemware-old/user/plugins/bochs/io.cc freemware/user/plugins/bochs/io.cc
--- freemware-old/user/plugins/bochs/io.cc      Sun Jan  9 23:49:47 2000
+++ freemware/user/plugins/bochs/io.cc  Sun Jan  9 23:46:59 2000
@@ -61,6 +61,7 @@
 
   memset(&sg_act, 0, sizeof(sg_act));
   sg_act.sa_handler = timer_handler;
+  sg_act.sa_flags = SA_RESTART;
   sigaction(SIGALRM,&sg_act,NULL);
 
   bx_options.private_colormap = 0;
diff -Nur freemware-old/user/user.c freemware/user/user.c
--- freemware-old/user/user.c   Sun Jan  9 23:49:47 2000
+++ freemware/user/user.c       Sun Jan  9 23:42:28 2000
@@ -509,7 +509,7 @@
 
     memset (&sg_act, 0, sizeof (sg_act));
     sg_act.sa_handler = abort_handler;
-    sg_act.sa_flags = SA_RESETHAND;
+    sg_act.sa_flags = SA_RESTART;
     sigaction (SIGINT, &sg_act, NULL);
 
 

Reply via email to