src: avoid duplicate AtExit functions · nodejs/node@becbcc7 · GitHub
Skip to content

Commit becbcc7

Browse files
committed
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: #8273 Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
1 parent 27fd2d7 commit becbcc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/node.cc

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)