Skip to content

Commit

Permalink
Bugfix: disabled gracefulExit by default, because the default SIGIN…
Browse files Browse the repository at this point in the history
…T/SIGTERM handlers of nodejs are removed
  • Loading branch information
AndiDittrich committed Jun 26, 2022
1 parent f5aeca3 commit 04751ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
@@ -1,5 +1,9 @@
## Branch 3.x ##

### 3.11.2 ###

* Bugfix: disabled `gracefulExit` by default, because the default SIGINT/SIGTERM handlers of nodejs are removed

### 3.11.1 ###

* Bugfix: `MaxListenersExceededWarning` was triggered by `gracefulExit` handlers added in `v3.11.0` - thanks to [TychoTheTaco on GitHub](https://github.com/npkgz/cli-progress/pull/125)
Expand Down
2 changes: 1 addition & 1 deletion lib/options.js
Expand Up @@ -94,7 +94,7 @@ module.exports = {
options.autopaddingChar = options.autopadding ? mergeOption(opt.autopaddingChar, ' ') : '';

// stop bar on SIGINT/SIGTERM to restore cursor settings ?
options.gracefulExit = mergeOption(opt.gracefulExit, true);
options.gracefulExit = mergeOption(opt.gracefulExit, false);

return options;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "cli-progress",
"version": "3.11.1",
"version": "3.11.2",
"description": "easy to use progress-bar for command-line/terminal applications",
"keywords": [
"cli",
Expand Down

0 comments on commit 04751ea

Please sign in to comment.