Close the connection that a pipe-stream uses without closing the stream.
system
pipe-close-connection stream
stream⇩ |
A pipe stream. |
The function pipe-close-connection
closes the connection underlying stream without closing the stream itself. This means that you cannot communicate with the child process anymore, but pipe-exit-status can still return the exit-status of the child process after a call to pipe-close-connection
. This differs from close, which prevents pipe-exit-status from working on Microsoft Windows. You should still call close on stream when you have finished using it.
pipe-close-connection
is useful when you need to send end-of-file to the child process, which causes the child process to exit, and then you want to obtain the exit status.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02