Changeset 14650


Ignore:
Timestamp:
Feb 8, 2011, 11:00:58 AM (14 years ago)
Author:
Gary Byers
Message:

In %SAVE-APPLICATION-INTERNAL, use MAKE-MCL-LISTENER-PROCESS to
run the user-specified toplevel-function, to ensure that that
process owns terminal input and that output is automatically
flushed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lib/dumplisp.lisp

    r14627 r14650  
    146146      (setq toplevel-function
    147147            (lambda ()
    148               (process-run-function "toplevel" (lambda ()
    149                                                  (funcall user-toplevel-function)
    150                                                  (quit)))
     148              (make-mcl-listener-process
     149               "toplevel"
     150                *stdin*
     151                *stdout*
     152                 #'quit
     153               :initial-function (lambda ()
     154                                   (catch :toplevel
     155                                     (funcall user-toplevel-function)))
     156               )
    151157              (%set-toplevel #'housekeeping-loop)
    152158              (toplevel)))))
Note: See TracChangeset for help on using the changeset viewer.