Skip to content

Commit 8052146

Browse files
author
cloudhead
committed
fix/improve the cleanup on exit
1 parent df83078 commit 8052146

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/vows

+2-3
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ if (args.length > 0) {
132132
process.addListener('uncaughtException', cleanup);
133133
process.addListener('exit', cleanup);
134134
process.addListener('SIGINT', function () {
135-
cleanup();
136-
process.exit();
135+
process.exit(0);
137136
});
138137
process.addListener('SIGQUIT', function () {
139138
changed();
@@ -171,7 +170,7 @@ if (args.length > 0) {
171170
function cursorRestore() { esc("u") }
172171
function cursorHide() { esc("?25l") }
173172
function cursorShow() { esc("?25h") }
174-
function cleanup() { cursorShow(), print('\n') }
173+
function cleanup() { eraseLine(), cursorShow(), print('\n') }
175174

176175
//
177176
// Called when a file has been modified.

0 commit comments

Comments
 (0)