Skip to content

Commit 20f7d59

Browse files
authored
fix: remove SIGWINCH listener upon closing the REPL
PR-URL: #2205 Reviewed-by: Athan Reines <[email protected]> Signed-off-by: Snehil Shah <[email protected]>
1 parent 8b7f927 commit 20f7d59

File tree

1 file changed

+1
-0
lines changed
  • lib/node_modules/@stdlib/repl/lib

1 file changed

+1
-0
lines changed

lib/node_modules/@stdlib/repl/lib/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ function REPL( options ) {
370370

371371
debug( 'Readline interface closed.' );
372372
self._istream.removeListener( 'keypress', onKeypress );
373+
proc.removeListener( 'SIGWINCH', onSIGWINCH );
373374

374375
debug( 'Exiting REPL...' );
375376
self.emit( 'exit' );

0 commit comments

Comments
 (0)