subprocess.js
This file
Path
test/fixtures/subprocess.js
9 lines · 293 bytes · JavaScript
Last changed by
Rename `spawned` and `child process` to `subprocess` (#897)ehmickybefore adoption8fe2343
History of this fileTake it
12345678910#!/usr/bin/env nodeimport process from 'node:process';import {execa} from '../../index.js';
const cleanup = process.argv[2] === 'true';const detached = process.argv[3] === 'true';const subprocess = execa('forever.js', {cleanup, detached});process.send(subprocess.pid);await subprocess;