memory.attach( pid )
Description
Attaches to a process by its process ID and returns a process object.
Arguments
| Argument | Type | Description |
|---|---|---|
| pid | number | process id to attach |
Example
process = memory.attach( 1234 )
if process then
utility.println( 'attached to pid: ' .. process.pid )
else
utility.println( 'failed to attach' )
end
Returns
process - process object if successful, nil if failed