ProcessManager watches Node.js signals SIGINT and SIGUSR2 to terminate the Matter.js runtime and trigger Matter.js
diagnostics respectively. It sets the process exit code to 0 if the runtime completes without error and to 1 if the
runtime crashes.
If enabled, SIGINT will perform a soft interrupt of the runtime once. ProcessManager will not process subsequent
interrupts so they will result in forced exit if no other handler exists.
ProcessManager watches Node.js signals SIGINT and SIGUSR2 to terminate the Matter.js runtime and trigger Matter.js diagnostics respectively. It sets the process exit code to 0 if the runtime completes without error and to 1 if the runtime crashes.
If enabled, SIGINT will perform a soft interrupt of the runtime once. ProcessManager will not process subsequent interrupts so they will result in forced exit if no other handler exists.
NodeJsEnvironment installs a ProcessManager into the default Matter.js Environment.
You can modify behavior by:
Passing an Environment other than Environment.default to your components
Disabling signal and exit code support with VariableService variables "runtime.signals" and "runtime.exitcode" respectively
Destroying ProcessManager in the default environment using ProcessManager.close
Subclassing ProcessManager, overriding specific functionality, and installing with Environment.set