what prevents node.js to exit process?

Is there any way to debug or determine what prevents node.js script to exit? All my code run is finished, I removed all event listeners, but process is still active.


You can use process.exit(<code>) to leave the program and check what they call "event loop" too

source : http://nodejs.org/api/process.html#process_process_exit_code

and : http://nodejs.org/api/repl.html

链接地址: http://www.djcxy.com/p/52698.html

上一篇: 当没有新事件排队时,node.js应用程序如何继续运行?

下一篇: 什么阻止node.js退出进程?