Re: trivial problem with fork

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



maybe your shell is acting up ? 

kind regards
anupam

Gowri Ramasubramanian <gowri.ramasubramanian@veritas.com> writes:

> Hi All,
>
> I know this is very trivial. Might be am missing something out.
>
> The program is a simple pipe, which writes "hello" to the child and the
> child prints "hello".
>
> When I run the code I get to see "hello" on stdout and then get the prompt
> but am not able to see it.
>
> What i mean is say the prompt is prompt>
>
> prompt>./a.out
> prompt>hello
>
> I get a prompt and then see hello
> and I don't see the prompt after hello.
>
> Actually what I expect is
>
> prompt>./a.out
> helloprompt>
>
> But if I type "ls" or anything after hello it shows the output. So it means
> that the prompt is there.
>
> What I mean is 
> prompt>./a.out
> prompt>helloecho hi
> hi
> prompt>
>
> Hope I have been clear. Thanks.
> Gowri.
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux