summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/fixtures/parent-process-nonpersistent.js
blob: 537478aac57840796a0d58f07289cb8adcdccd17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// deno-fmt-ignore-file
// deno-lint-ignore-file

// Copyright Joyent and Node contributors. All rights reserved. MIT license.
// Taken from Node 18.12.1
// This file is automatically generated by `tests/node_compat/runner/setup.ts`. Do not modify this file manually.

// Modified to add `runner.ts` to inject `require` into subprocess

const spawn = require('child_process').spawn,
    path = require('path'),
    childPath = path.join(__dirname, 'child-process-persistent.js');

var child = spawn(process.execPath, [ childPath ], {
  detached: true,
  stdio: 'ignore'
});

console.log(child.pid);

child.unref();