Commit 5215dc7a authored by wlott's avatar wlott
Browse files

Use VECTOR-SAP to explicitly convert the string ibuf into a system-area-

pointer before calling UNIX-READ, because UNIX-READ no longer does it for
us.  Also, wrap it with a WITHOUT-GCING so that the garbage collector
doesn't get confused.
parent fc181473
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/wire.lisp,v 1.7 1992/02/14 23:45:40 wlott Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/wire.lisp,v 1.8 1992/02/18 16:56:49 wlott Exp $")
;;; **********************************************************************
......@@ -263,8 +263,10 @@ is signaled."
(unless ibuf
(error 'wire-eof :wire wire))
(multiple-value-bind (bytes error)
(unix:unix-read fd ibuf buffer-size)
(bytes error)
(unix:unix-read fd (system:vector-sap ibuf) buffer-size))
(cond ((null bytes)
(error 'wire-io-error
:wire wire
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment