process.pid
process.pid
Function
Read the PID of the started child process.
Syntax
process(program).child().pid()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int/Empty | Returns PID if a child process has been started; returns Empty if there is no child process handle. |
Example
cmd = process('cmd') result = cmd.pid() // Output: print result
Notes
- pid will not start the process, only read the existing child handle.