Product Documentation
Cadence Interprocess Communication SKILL Reference
Product Version IC23.1, June 2023

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

o_childId

Child process handle.

Value Returned

t

The child process is active.

nil

The child process is expired.

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

ipcActivateBatch

ipcBeginProcess

ipcSkillProcess


Return to top
 ⠀
X