You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any entrypoint to the Polykey-Desktop application must do this at the beginning:
/** * Hack for wiping out the threads signal handlers * See: https://github.com/andywer/threads.js/issues/388 * This is done statically during this import * It is essential that the threads import here is very first import of threads module * in the entire codebase for this hack to work * If the worker manager is used, it must be stopped gracefully with the PolykeyAgent */import'threads';process.removeAllListeners('SIGINT');process.removeAllListeners('SIGTERM');
If it is expected that process context needs to import PolykeyAgent or really any transitive import of @matrixai/db or threads.
When the signal handlers are removed from upstream, this hack can be removed from Polykey and Polykey-Desktop.
Specification
Any entrypoint to the Polykey-Desktop application must do this at the beginning:
If it is expected that process context needs to import
PolykeyAgent
or really any transitive import of@matrixai/db
orthreads
.When the signal handlers are removed from upstream, this hack can be removed from Polykey and Polykey-Desktop.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: