fork on uClinux

Shaun Jackman sjackman at gmail.com
Sat May 27 14:14:30 UTC 2006


On 5/26/06, Rich Felker <dalias at aerifal.cx> wrote:
> No, you misunderstand. I did not say it would corrupt the FILE
> structure. I said it would corrupt the actual _file_ on disk. That is,
> each copy of the process will have a copy of the output buffer, and
> they both will flush it, so the data will be written twice.

Yes, I see what you're saying now. I suppose it's a good idea, then,
to flush all stdio streams before forking -- or, as you mentioned,
ensure the child calls execve or _exit and not exit.

Cheers,
Shaun



More information about the uClibc mailing list