Fixed optional-arg bug in open-control-tty.
This commit is contained in:
parent
8e510db64c
commit
325407b9fb
|
@ -21,8 +21,7 @@
|
|||
(let* ((process (fork (lambda ()
|
||||
(close-input-port pty-in)
|
||||
(become-session-leader)
|
||||
(let ((tty (open-control-tty ttyname
|
||||
open/read+write)))
|
||||
(let ((tty (open-control-tty ttyname)))
|
||||
(move->fdes tty 0)
|
||||
(dup->outport tty 1)
|
||||
(set-port-buffering (dup->outport tty 2)
|
||||
|
|
|
@ -318,7 +318,7 @@
|
|||
;;; This limted functionality is about all we can provide portably across BSD,
|
||||
;;; SunOS, and SVR4.
|
||||
|
||||
(define (open-control-tty ttyname maybe-flags)
|
||||
(define (open-control-tty ttyname . maybe-flags)
|
||||
(let ((flags (optional-arg maybe-flags open/read+write)))
|
||||
(receive (errno fd) (open-control-tty/errno ttyname flags)
|
||||
(if errno
|
||||
|
|
Loading…
Reference in New Issue