ipcCloseProcess
ipcCloseProcess(o_childId) =>t/nil
Description
Closes the input channel of the child process.
This is the equivalent of a Control-d sent down the input channel of the Unix child process. Some commands will wait for the input channel to be closed before they complete, so this function allows for that to happen programmatically.
Arguments
Value Returned
Examples
cid = ipcBeginProcess("wc")
ipc:3
ipcWriteProcess(cid "line 1\n")
t
ipcWriteProcess(cid "line 2\n")
t
ipcCloseProcess(cid)
t
ipcReadProcess(cid)
" 2 4 14\n"
Related Topics
Interprocess Communication Functions
Return to top