In PHP, is there a way for the child process to be disabled using pcntl_fork() write data directly back to the parent stdin? I do not mean a separate tube - the stdin resource itself? (This should be stdin, because, in short, what the parent does will not work correctly if it cannot directly link its own stdin to the incoming data - a separate channel will not work.) As in:
$pid = pcntl_fork(); if (!$pid) { // do fun child process stuff // write data back to parent STDIN }
source share