Skip to content

Commit 43fd1d7

Browse files
committed
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 <[email protected]>
1 parent cea10ba commit 43fd1d7

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
@@ -4180,6 +4180,7 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
41804180

41814181
env.set_can_call_into_js(false);
41824182
env.stop_sub_worker_contexts();
4183+
uv_tty_reset_mode();
41834184
env.RunCleanup();
41844185
RunAtExit(&env);
41854186

0 commit comments

Comments
 (0)