pidnap 0.0.0-dev.5 → 0.0.0-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/manager.ts CHANGED
@@ -726,6 +726,11 @@ export class Manager {
726
726
 
727
727
  this.envManager.close();
728
728
 
729
+ for (const [signal, handler] of this.signalHandlers) {
730
+ process.off(signal, handler);
731
+ }
732
+ this.signalHandlers.clear();
733
+
729
734
  // Stop task list if still running
730
735
  if (this.taskList) {
731
736
  await this.taskList.stop(timeout);