diff --git a/lib/internal/process/main_thread_only.js b/lib/internal/process/main_thread_only.js index b8e518f6a1d388..148dfdc0f7f980 100644 --- a/lib/internal/process/main_thread_only.js +++ b/lib/internal/process/main_thread_only.js @@ -154,6 +154,13 @@ function setupSignalHandlers(internalBinding) { delete signalWraps[type]; } }); + + // re-arm pre-existing signal event registrations + // with this signal wrap capabilities. + process.eventNames().forEach((ev) => { + if (isSignal(ev)) + process.emit('newListener', ev); + }); } function setupChildProcessIpcChannel() {