Skip to content

child_process: `null` channel handle on close

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-2847 into master

HandleWrap::OnClose destroys the underlying C++ object and null's the internal field pointer to it. Therefore there should be no references to the wrapping JavaScript object.

null the process' _channel field right after closing it, to ensure no crashes will happen.

Fix: https://github.com/nodejs/node/issues/2847

Merge request reports

Loading