Re: fork() memory corruption... is this glibc2 or kernel?

Olaf Titz (olaf@bigred.inka.de)
Sun, 21 Jun 1998 11:38:24 +0200


> the subtle issue here is that you are using libc6's fgets(), which uses
> mmap(), which is not copied on fork() ... this way you might see the

In my view this translates to: when using libc 6, open stdio FILEs are
not preserved across fork() (even depending on what you do with them?).
This breaks expected fork() semantics badly. Either the kernel or
libc6 is bugged.

olaf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu