From 20f7d594aca03eae0e31659ca62bb9a8d2a4f2ce Mon Sep 17 00:00:00 2001 From: Snehil Shah <130062020+Snehil-Shah@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:19:27 +0530 Subject: [PATCH] fix: remove `SIGWINCH` listener upon closing the REPL PR-URL: https://github.com/stdlib-js/stdlib/pull/2205 Reviewed-by: Athan Reines Signed-off-by: Snehil Shah --- lib/node_modules/@stdlib/repl/lib/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/repl/lib/main.js b/lib/node_modules/@stdlib/repl/lib/main.js index fbde77472e2f..b5afa1583a11 100644 --- a/lib/node_modules/@stdlib/repl/lib/main.js +++ b/lib/node_modules/@stdlib/repl/lib/main.js @@ -370,6 +370,7 @@ function REPL( options ) { debug( 'Readline interface closed.' ); self._istream.removeListener( 'keypress', onKeypress ); + proc.removeListener( 'SIGWINCH', onSIGWINCH ); debug( 'Exiting REPL...' ); self.emit( 'exit' );