Thank you for the information. I opened an issue (#3147). It's possible that process.on('exit') would work here, however it is not straightforward in our code to handle it on the JS side. Meanwhile I was able to modify the way we wait for worker threads to make it work without it.
Thank you, Jerome Couture-Gagnon On Apr 20, 3:38 pm, Ben Noordhuis <i...@bnoordhuis.nl> wrote: > 2012/4/20 Jérôme Couture-Gagnon <jerome.couture-gag...@fabric-engine.com>: > > > Thank you for the tip. Unfortunately atexit() calls too late; having a > > "finalize" callback from node would be helpful in my case. I need to > > wait for worker threads to be finished, however doing this is more > > complex as soon as the DLL is in the process of exiting (reference: > >http://msdn.microsoft.com/en-us/windows/hardware/gg487379p.6) > > Node doesn't have anything like that right now unless a > process.on('exit') listener is good enough for your use case. > > If you open an issue or submit a pull request, we'll add it. It'll be > a while before it shows up in a stable release though so it won't help > you right away. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en