Category "spawn"

posix_spawn and non-standard pipe setup for ipc between parent and child process

The file actions of posix_spawn describe the setup code for the child process before it might run execve (which deletes stack etc). The intended use case is to

Node.js: Killing sub processes of ChildProcess#spawn

Consider the following code: import {spawn, exec} from 'child_process'; var child = spawn('su', [process.env.USER, '-c', 'while (true); do sleep 0.3; echo