graceful-nested.js
This file
Path
test/fixtures/graceful-nested.js
7 lines · 329 bytes · JavaScript
Last changed by
Harden some thingsSindre Sorhusbefore adoption4a0a121
History of this fileTake it
Harden some thingsSindre Sorhusbefore adoption4a0a121
lines 1–7why, one step back1#!/usr/bin/env node2import {execa, getCancelSignal, sendMessage} from 'execa';34const cancelSignal = await getCancelSignal();5// Neither the messages nor the disconnection of this process' own subprocess must abort its `cancelSignal`6await execa('ipc-send-cancel-shape.js', {ipc: true});7await sendMessage(cancelSignal.aborted);