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

Re: trivial problem with fork



On Wed, Mar 03, 2004 at 04:03:09AM -0800, Gowri Ramasubramanian wrote:
> Hi All,

[...]

> Hope I have been clear. Thanks.

If I understand, you want the prompt to be printed after the child has
exited ?
You should know that the shell waits only for the a.out processes (using
a wait() function), not its child, so you should add a wait() call
before your main program exits.

Hope to be clear also :-)

-- 
Julien Danjou
 · http://jdanjou.org            <julien@xxxxxxxxxxx> ·
 · 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD ·

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