mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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: https://github.com/nodejs/node/issues/21020 PR-URL: https://github.com/nodejs/node/pull/21257 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
1 parent
e5c2f575b1
commit
cb5ec64956
1 file changed
+1
@@ -4396,6 +4396,7 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
|
||||
WaitForInspectorDisconnect(&env);
|
||||
|
||||
env.set_can_call_into_js(false);
|
||||
uv_tty_reset_mode();
|
||||
env.RunCleanup();
|
||||
RunAtExit(&env);
|
||||
|
||||
|
||||
Reference in new issue
Block a user