Skip to content

Commit cb5ec64

Browse files
addaleaxevanlucas
authored andcommitted
src: reset TTY mode before cleaning up resources
Otherwise, closing all handles associated with the main event loop would also mean that `uv_tty_reset_mode()` can’t function properly because the corresponding FDs have already been closed. Fixes: #21020 PR-URL: #21257 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent e5c2f57 commit cb5ec64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4396,6 +4396,7 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
43964396
WaitForInspectorDisconnect(&env);
43974397

43984398
env.set_can_call_into_js(false);
4399+
uv_tty_reset_mode();
43994400
env.RunCleanup();
44004401
RunAtExit(&env);
44014402

0 commit comments

Comments
 (0)