[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trivial problem with fork
Gowri,
> >./a.out hello
>
> I get a prompt and then see hello and I don't see the prompt after
> hello.
>
the issue with that: it is not fully deterministic which program gets
executed after the fork. It could be that the shell is scheduled
first....
Show us your code for further explanations.
wbr,
Lukas
--
Lukas Ruf | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/