Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$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." ...@@ -263,8 +263,10 @@ is signaled."
(unless ibuf (unless ibuf
(error 'wire-eof :wire wire)) (error 'wire-eof :wire wire))
(multiple-value-bind (bytes error) (multiple-value-bind
(unix:unix-read fd ibuf buffer-size) (bytes error)
(system:without-gcing
(unix:unix-read fd (system:vector-sap ibuf) buffer-size))
(cond ((null bytes) (cond ((null bytes)
(error 'wire-io-error (error 'wire-io-error
:wire wire :wire wire
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment