1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

REPL Server: Redirect warnings to client socket.

* module/system/repl/server.scm (serve-client): Use parameterize.
  Redirect warnings to client socket.
This commit is contained in:
Mark H Weaver 2014-02-04 12:08:48 -05:00
parent c8e839cfeb
commit 5e74217c7c

View file

@ -1,6 +1,6 @@
;;; Repl server
;; Copyright (C) 2003, 2010, 2011 Free Software Foundation, Inc.
;; Copyright (C) 2003, 2010, 2011, 2014 Free Software Foundation, Inc.
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
@ -104,12 +104,10 @@
(define (serve-client client addr)
(with-continuation-barrier
(lambda ()
(with-input-from-port client
(lambda ()
(with-output-to-port client
(lambda ()
(with-error-to-port client
(lambda ()
(with-fluids ((*repl-stack* '()))
(start-repl))))))))))
(parameterize ((current-input-port client)
(current-output-port client)
(current-error-port client)
(current-warning-port client))
(with-fluids ((*repl-stack* '()))
(start-repl)))))
(close-socket! client))