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:
parent
c8e839cfeb
commit
5e74217c7c
1 changed files with 7 additions and 9 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue