uloop. process

Represents a uloop process instance as returned by process().

Example
const proc = uloop.process(…);

proc.pid();

proc.delete();

Methods

delete() → {boolean}

Unregisters the process from uloop.

This method unregisters the process from the uloop event loop and releases any associated resources. However, note that the operating system process itself is not terminated by this method.

Returns: boolean

Returns true on success.

Example
const proc = uloop.process(…);

proc.delete();

pid() → {number}

Returns the process ID.

This method returns the process ID (PID) of the operating system process launched by process().

Returns: number

The process ID (PID) of the associated launched process.

Example
const proc = uloop.process(…);

printf("Process ID: %d\n", proc.pid());