diff --git a/src/node.cc b/src/node.cc index 5cab485bbd7c40..9dc66f907f4c3f 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3326,7 +3326,7 @@ void SetupProcessObject(Environment* env, #undef READONLY_PROPERTY -static void AtExit() { +static void AtProcessExit() { uv_tty_reset_mode(); } @@ -3363,7 +3363,7 @@ void LoadEnvironment(Environment* env) { env->isolate()->SetFatalErrorHandler(node::OnFatalError); env->isolate()->AddMessageListener(OnMessage); - atexit(AtExit); + atexit(AtProcessExit); TryCatch try_catch(env->isolate());