#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gdatab.scm,v 14.3 1988/06/16 06:27:40 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gdatab.scm,v 14.4 1989/06/09 16:51:21 cph Rel $
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define (initialize-package!)
(set! event:after-restore (make-event-distributor))
(set! event:after-restart (make-event-distributor))
+ (set! event:before-exit (make-event-distributor))
(set! tagged-pair-methods (make-1d-table))
(set! tagged-vector-methods (make-1d-table))
(set! named-structure-descriptions (make-1d-table)))
(define event:after-restore)
(define event:after-restart)
+(define event:before-exit)
(define tagged-pair-methods)
(define tagged-vector-methods)
(define named-structure-descriptions)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.8 1989/05/21 17:14:29 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.9 1989/06/09 16:51:27 cph Rel $
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(if (prompt-for-confirmation "Kill Scheme? ") (%exit)))
(define (%exit)
- (close-all-open-files)
+ (event-distributor/invoke! event:before-exit)
((ucode-primitive exit)))
(define (quit)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/io.scm,v 14.1 1988/06/13 11:46:32 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/io.scm,v 14.2 1989/06/09 16:51:31 cph Rel $
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(set! open-files-list (list 'OPEN-FILES-LIST))
(set! traversing? false)
(add-gc-daemon! close-lost-open-files-daemon)
- (add-event-receiver! event:after-restore primitive-io/reset!))
+ (add-event-receiver! event:after-restore primitive-io/reset!)
+ (add-event-receiver! event:before-exit close-all-open-files))
(define-integrable (make-physical-channel descriptor channel direction)
(hunk3-cons descriptor channel direction))
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.38 1989/06/06 22:42:36 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.39 1989/06/09 16:51:34 cph Exp $
Copyright (c) 1988, 1989 Massachusetts Institute of Technology
add-unparser-special-pair!
event:after-restart
event:after-restore
+ event:before-exit
named-structure/get-tag-description
named-structure/set-tag-description!
unparse-with-brackets
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.8 1989/03/14 02:16:13 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.9 1989/06/09 16:51:40 cph Rel $
Copyright (c) 1988, 1989 Massachusetts Institute of Technology
(set! filename
(or ((ucode-primitive reload-band-name))
(error "DISK-RESTORE: No default band name available"))))
- (close-all-open-files)
+ (event-distributor/invoke! event:before-exit)
((ucode-primitive load-band) (canonicalize-input-filename filename)))\f
(define world-identification "Scheme")
(define time-world-saved)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.44 1989/06/06 22:43:13 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.45 1989/06/09 16:51:44 cph Exp $
Copyright (c) 1988, 1989 Massachusetts Institute of Technology
'()))
(add-system! microcode-system)
(add-event-receiver! event:after-restore snarf-microcode-version!)
- (add-identification! "Runtime" 14 44))
+ (add-identification! "Runtime" 14 45))
(define microcode-system)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.8 1989/05/21 17:14:29 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.9 1989/06/09 16:51:27 cph Rel $
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(if (prompt-for-confirmation "Kill Scheme? ") (%exit)))
(define (%exit)
- (close-all-open-files)
+ (event-distributor/invoke! event:before-exit)
((ucode-primitive exit)))
(define (quit)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.38 1989/06/06 22:42:36 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.39 1989/06/09 16:51:34 cph Exp $
Copyright (c) 1988, 1989 Massachusetts Institute of Technology
add-unparser-special-pair!
event:after-restart
event:after-restore
+ event:before-exit
named-structure/get-tag-description
named-structure/set-tag-description!
unparse-with-brackets