detach.js
This file
Path
test/fixtures/detach.js
7 lines · 199 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678#!/usr/bin/env nodeimport process from 'node:process';import {execa} from '../../index.js';
const subprocess = execa('forever.js', {detached: true});console.log(subprocess.pid);process.exit(0);