Skip to content

Commit

Permalink
fix: remove SIGWINCH listener upon closing the REPL
Browse files Browse the repository at this point in the history
PR-URL: #2205
Reviewed-by: Athan Reines <kgryte@gmail.com>
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
  • Loading branch information
Snehil-Shah authored Apr 26, 2024
1 parent 8b7f927 commit 20f7d59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

1 comment on commit 20f7d59

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
repl $\color{red}7906/10149$
$\color{green}+77.90\%$
$\color{red}409/582$
$\color{green}+70.27\%$
$\color{red}94/161$
$\color{green}+58.39\%$
$\color{red}7906/10149$
$\color{green}+77.90\%$

The above coverage report was generated for the changes in this push.

Please # to comment.