projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.31.22: improved SAP-{REF,SET}-* for x86-64
[sbcl.git]
/
src
/
code
/
run-program.lisp
diff --git
a/src/code/run-program.lisp
b/src/code/run-program.lisp
index
04b5d6a
..
1b9b310
100644
(file)
--- a/
src/code/run-program.lisp
+++ b/
src/code/run-program.lisp
@@
-440,7
+440,7
@@
status slot."
(error "could not find a pty"))))))
#-win32
(error "could not find a pty"))))))
#-win32
-(defun open-pty (pty cookie)
+(defun open-pty (pty cookie &key (external-format :default))
(when pty
(multiple-value-bind
(master slave name)
(when pty
(multiple-value-bind
(master slave name)
@@
-452,7
+452,7
@@
status slot."
(unless new-fd
(error "couldn't SB-UNIX:UNIX-DUP ~W: ~A" master (strerror errno)))
(push new-fd *close-on-error*)
(unless new-fd
(error "couldn't SB-UNIX:UNIX-DUP ~W: ~A" master (strerror errno)))
(push new-fd *close-on-error*)
- (copy-descriptor-to-stream new-fd pty cookie)))
+ (copy-descriptor-to-stream new-fd pty cookie external-format)))
(values name
(sb-sys:make-fd-stream master :input t :output t
:element-type :default
(values name
(sb-sys:make-fd-stream master :input t :output t
:element-type :default
@@
-759,7
+759,7
@@
Users Manual for details about the PROCESS structure."#-win32"
(if search 1 0)
environment-vec pty-name
(if wait 1 0))))
(if search 1 0)
environment-vec pty-name
(if wait 1 0))))
- (when (plusp child)
+ (unless (= child -1)
(setf proc
(apply
#'make-process
(setf proc
(apply
#'make-process