(disk-save): Unless IDENTIFY is a string, return a boolean value.
authorChris Hanson <org/chris-hanson/cph>
Fri, 21 Oct 1988 00:17:34 +0000 (00:17 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 21 Oct 1988 00:17:34 +0000 (00:17 +0000)
v7/src/runtime/savres.scm

index 1e9b65008691981b091294c9de69dcf2fd18643d..484e62e8f1bc5c82fb4cc650394bca0142386585 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.5 1988/10/21 00:15:37 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.6 1988/10/21 00:17:34 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -66,24 +66,23 @@ MIT in each case. |#
       (save-image filename
                  (lambda ()
                    (set! time-world-saved time)
-                   (if (false? identify)
-                       false
-                       unspecific))
+                   (if (string? identify)
+                       unspecific
+                       false))
                  (lambda ()
                    (set! time-world-saved time)
                    (event-distributor/invoke! event:after-restore)
-                   (cond ((false? identify)
-                          true)
-                         ((string? identify)
-                          (set! world-identification identify)
-                          (clear console-output-port)
-                          (abort->top-level
-                           (lambda (cmdl)
-                             (identify-world cmdl)
-                             (event-distributor/invoke! event:after-restart))))
-                         (else
-                          (event-distributor/invoke! event:after-restart)
-                          unspecific)))))))
+                   (if (string? identify)
+                       (begin
+                         (set! world-identification identify)
+                         (clear console-output-port)
+                         (abort->top-level
+                          (lambda (cmdl)
+                            (identify-world cmdl)
+                            (event-distributor/invoke! event:after-restart))))
+                       (begin
+                         (event-distributor/invoke! event:after-restart)
+                         true)))))))
 \f
 (define (disk-save/kernel filename after-suspend after-restore)
   ((without-interrupts