[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in exit()?
From: |
Wolfram Gloger |
Subject: |
Re: Bug in exit()? |
Date: |
Tue, 24 Apr 2001 14:14:46 +0200 (MDT) |
Hello,
> In the supplied program, the vfork()ed child runs in its parent's address
> space (test on SuSE 6.4, Kernel 2.2.14, glibc 2.2.3), and so its call to
> exit should close the parent's stdout buffer, and cause the printf() in
> the parent to fail. Instead the printf() succeeds. Uncommenting the
> fclose() in the child achieves the effect that should be achieved just by
> the child calling exit().
Please take a look at
http://www.UNIX-systems.org/onlinepubs/007908799/xsh/vfork.html
I conclude from it that calling exit() in the child is not allowed,
only _exit() is.
Also:
> default: /* Parent is blocked until child exits */
How do you get that idea? I'm pretty sure parent and child can
execute concurrently.
Regards,
Wolfram.
- Bug in exit()?, Michael Kerrisk, 2001/04/24
- Re: Bug in exit()?, Andreas Jaeger, 2001/04/24
- Re: Bug in exit()?, Michael Kerrisk, 2001/04/24
- Re: Bug in exit()?,
Wolfram Gloger <=
- Re: Bug in exit()?, Michael Kerrisk, 2001/04/24
- Re: Bug in exit()?, Ulrich Drepper, 2001/04/24
- Re: Bug in exit()?, Michael Kerrisk, 2001/04/25
- Re: Bug in exit()?, Ulrich Drepper, 2001/04/25
- Re: Bug in exit()?, Mike Castle, 2001/04/25
- Re: Bug in exit()?, Ulrich Drepper, 2001/04/25
- Re: Bug in exit()?, Wolfram Gloger, 2001/04/25