Skip to main content
Worker.prototype.process - node__cluster.d.ts - Node documentation
property Worker.prototype.process

Usage in Deno

```typescript import { Worker } from "node:node__cluster.d.ts"; ```
All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object from this function is stored as `.process`. In a worker, the global `process` is stored. See: [Child Process module](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options). Workers will call `process.exit(0)` if the `'disconnect'` event occurs on `process` and `.exitedAfterDisconnect` is not `true`. This protects against accidental disconnection.

Type

child.ChildProcess