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

ipcIsAliveProcess

ipcIsAliveProcess( 
o_childId 
) 
=> t / nil 

Description

Checks if a child process is still alive.

In real time, notification that a child process has expired can never be made available immediately after it happens. It is subject to the operating system’s underlying process communication delays and to network delays if the child is executing remotely. You need to make allowances for such delays.

Arguments

o_childId

Child process handle.

Value Returned

t

The child process is still alive.

nil

The child process is stopped or expired.

Examples

      cid = ipcBeginProcess("sleep 15")
ipc:10
ipcIsAliveProcess(cid)
t
cid->state
Active
;; wait 15 seconds
      ipcIsAliveProcess(cid)
nil
cid->state
Dead

Related Topics

Interprocess Communication Functions

ipcBeginProcess

ipcKillProcess


Return to top
 ⠀
X