[cs631apue] Weird Output when use pipe

Jan Schaumann jschauma at stevens.edu
Sun Dec 4 10:59:40 EST 2016


bzhang41 <bzhang41 at stevens.edu> wrote:
 
> However, interesting thing happened when I use pipe, each time I try, it 
> will
> output different result, sometimes it is correct, sometimes it is not. 
> The
> following is the output of the test:

Sounds like you're not correctly reading input.  Use the debugger to
observe the program as it's reading data.

-Jan


More information about the cs631apue mailing list