(top-repl): Use 2 as the limit when saving the stack.
authorMarius Vollmer <mvo@zagadka.de>
Wed, 9 Oct 2002 22:47:34 +0000 (22:47 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Wed, 9 Oct 2002 22:47:34 +0000 (22:47 +0000)
(error-catching-loop): use call-with-blocked-asyncs and
call-with-unblocked-asyncs instead of mask-signals and unmask-signals.

ice-9/boot-9.scm

index c1a03f0..f3d50b7 100644 (file)
                    (lambda ()
                      (lazy-catch #t
                                  (lambda ()
-                                   (dynamic-wind
-                                    (lambda () (unmask-signals))
+                                   (call-with-unblocked-asyncs
                                     (lambda ()
                                       (with-traps
                                        (lambda ()
                                          (set! first #f)
                                          (let loop ((v (thunk)))
                                            (loop (thunk)))
-                                         #f)))
-                                    (lambda () (mask-signals))))
+                                         #f)))))
 
                                  lazy-handler-dispatch))
 
                                   (#t
                                    (error "sorry, not implemented")))))
     (set! batch-mode? (lambda () (not interactive)))
-    (loop (lambda () #t))))
+    (call-with-blocked-asyncs
+     (lambda () (loop (lambda () #t))))))
 
 ;;(define the-last-stack (make-fluid)) Defined by scm_init_backtrace ()
 (define before-signal-stack (make-fluid))
                                    ;; Make a backup copy of the stack
                                    (fluid-set! before-signal-stack
                                                (fluid-ref the-last-stack))
-                                   (save-stack 1)
+                                   (save-stack 2)
                                    (scm-error 'signal
                                               #f
                                               msg