help!!! pipe program# Unix - 噫吁兮,危乎高哉
q*c
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!!!
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!!!