Skip to content

Commit 02ed238

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: nodejs#21020
1 parent b56788d commit 02ed238

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

40934093
env.set_can_call_into_js(false);
40944094
env.stop_sub_worker_contexts();
4095+
uv_tty_reset_mode();
40954096
env.RunCleanup();
40964097
RunAtExit(&env);
40974098

0 commit comments

Comments
 (0)