diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-03-12 15:37:50 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-03-12 15:39:25 -0700 |
commit | e4f4d8ebacc5b44cd110d201de5b26c90cc849be (patch) | |
tree | 1065b2b39f7e9a4592569851c0598a01e1d25b33 /src/util.lisp | |
parent | 2b89cfb8645afb249f6cc21fe3ae588dae5210be (diff) | |
download | consfigurator-e4f4d8ebacc5b44cd110d201de5b26c90cc849be.tar.gz |
MAPC-OPEN-{INPUT,OUTPUT}-STREAMS: don't use &rest
This brings these functions closer to MAPC.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.lisp b/src/util.lisp index aefe01c..f5d3498 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -550,8 +550,8 @@ previous output." `(progn #-(or sbcl) (error "Don't know how to safely fork(2) in this Lisp.") (mapc-open-output-streams - #'force-output - *standard-output* *error-output* *debug-io* *terminal-io*) + #'force-output (list *debug-io* *terminal-io* + *standard-output* *error-output*)) (let ((,retval (fork))) (if (zerop ,retval) ;; We leave it to the caller to appropriately call CLOSE or @@ -701,7 +701,7 @@ Does not currently establish a PAM session." (two-way-stream (two-way-stream-input-stream stream)) (stream (and (input-stream-p stream) stream)))) -(defun mapc-open-input-streams (function &rest streams) +(defun mapc-open-input-streams (function streams) (dolist (stream streams streams) (when-let ((input-stream (stream->input-stream stream))) (when (open-stream-p input-stream) @@ -714,7 +714,7 @@ Does not currently establish a PAM session." (two-way-stream (two-way-stream-output-stream stream)) (stream (and (output-stream-p stream) stream)))) -(defun mapc-open-output-streams (function &rest streams) +(defun mapc-open-output-streams (function streams) (dolist (stream streams streams) (when-let ((output-stream (stream->output-stream stream))) (when (open-stream-p output-stream) |