q**c 发帖数: 3 | 1 a program about pipe, suppose a command:
ls -l | more
then use fork to create process for more, dup pipe[0] as
stdin, execv more
then use fork to create process for ls -l, dup pipe[1] as
stdout execv ls -l
wait at parent process
but even the process ls stopped, the process more is
still running, so when I type new command, it don't echo at
screen. Please help me to kill process more
thanks a lot!!! |
|