Re: The size of result from vfork() + pipe()




"Jim Jackson 写道:
"
Ken <bg2aw@xxxxxxxx> wrote:
Dear all,

I am using vfork()+pipe() to excute a system command, for example
"ifconfig LAN", and to get result by read the pipe. When my DRAM_SIZE
is configured as 8MB, I can get a full size of result, such as
440bytes, but when my DRAM_SIZE is configured as 16MB, I can only get a
incomplete result: 256bytes.

so do a second read to get the rest!


Hi Jim,

Thank you vy much.
By following your comments,
I have goten all result from the pipe!

Ken

.