Lines Matching defs:disconnect
31 // Check that the 'disconnect' event is deferred to the next event loop tick.
32 const disconnect = process.disconnect;
33 process.disconnect = function() {
34 disconnect.apply(this, arguments);
36 process.once('disconnect', common.mustCall(disconnectIsNotAsync));
47 process.on('disconnect', function() {
74 // When calling .disconnect the event should emit
76 child.on('disconnect', common.mustCall(function() {
87 // Connect to child using TCP to know if disconnect was emitted
95 child.disconnect();
97 child.disconnect.bind(child),
104 // 'disconnect' is emitted