pipelinefunction that codes to the following interface:
pipelineaccepts two argument vectors and, assuming both vectors are valid, spawns off twin processes with the added bonus that the standard output of the first is directed to the standard input of the second.
pipelinecalls are well-formed and work as expected.
argv2are each valid,
NULL-terminated argument vectors, and
pidsis the base address of an array of length two.
execvp, and so forth succeed so that you needn't do any error checking whatsoever.
pipelineshould return without waiting for either of the child processes to finish, and the pids of the two processes are dropped into
From the command line
# Pause PID 1234 myth61$ kill -STOP 1234 # Resume PID 1234 myth61$ kill -CONT 1234