Commit becbcc79 authored by Ali Ijaz Sheikh's avatar Ali Ijaz Sheikh
Browse files

src: avoid duplicate AtExit functions

node.cc had two functions with the name AtExit with entirely different
purposes:

* node::AtExit(): file static; used to register the atexit(3) handler
  for the Node process.
* node::AtExit(void (*)(void*), void*): publicly exported symbol that
  addons can use to request callbacks upon exit.

For code readability it is better to avoid the unintentional overload.

PR-URL: https://github.com/nodejs/node/pull/8273


Reviewed-By: default avataraddaleax - Anna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarjasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: default avatarcjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarbnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
parent 27fd2d7e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment