summaryrefslogtreecommitdiff
path: root/lib/child_process.js
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2017-11-20 17:18:40 +0100
committerAnna Henningsen <anna@addaleax.net>2017-11-28 02:50:54 +0100
commitb44efded8481877c1ec782112b9ae4c4fec37463 (patch)
tree7c967e36bc1d718c513965b619f65e7f4f9da95a /lib/child_process.js
parent91d131210c2d7887d8625d34c1008a3d423cf86b (diff)
downloadandroid-node-v8-b44efded8481877c1ec782112b9ae4c4fec37463.tar.gz
android-node-v8-b44efded8481877c1ec782112b9ae4c4fec37463.tar.bz2
android-node-v8-b44efded8481877c1ec782112b9ae4c4fec37463.zip
async_wrap: add provider types for net server
Adds `TCPSERVERWRAP` and `PIPESERVERWRAP` as provider types. This makes it possible to distinguish servers from connections. PR-URL: https://github.com/nodejs/node/pull/17157 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/child_process.js')
-rw-r--r--lib/child_process.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/child_process.js b/lib/child_process.js
index b951caee10..7b11d953d5 100644
--- a/lib/child_process.js
+++ b/lib/child_process.js
@@ -28,7 +28,7 @@ const { createPromise,
promiseResolve, promiseReject } = process.binding('util');
const debug = util.debuglog('child_process');
const { Buffer } = require('buffer');
-const { Pipe } = process.binding('pipe_wrap');
+const { Pipe, constants: PipeConstants } = process.binding('pipe_wrap');
const { errname } = process.binding('uv');
const child_process = require('internal/child_process');
const {
@@ -103,7 +103,7 @@ exports.fork = function(modulePath /*, args, options*/) {
exports._forkChild = function(fd) {
// set process.send()
- var p = new Pipe(true);
+ var p = new Pipe(PipeConstants.IPC);
p.open(fd);
p.unref();
const control = setupChannel(process, p);