[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [configure.ac/uClinux] Adding code for fork/vfork?
From: |
Andrew W. Nosenko |
Subject: |
Re: [configure.ac/uClinux] Adding code for fork/vfork? |
Date: |
Sat, 16 Apr 2011 01:56:28 +0300 |
On Sat, Apr 16, 2011 at 01:53, Bob Friesenhahn
<address@hidden> wrote:
> On Fri, 15 Apr 2011, Mike Frysinger wrote:
>>>
>>> If you do not want to "force" people to change their code, you will
>>> probably need to offer a "stub" fork() to link against on non-MMU CPUs.
>>
>> the majority of the time, it isnt just fork() that needs to change. any
>> exit() in the child needs to be changed to _exit() too.
>
> The sole purpose of vfork is to immediately invoke exec() Any other purpose
> is forbidden. In what case would an exit even be required?
>
exec() may fail. And you need to exit somehow. Calling of exit() in
such situation is a bad thing because it call atexit handlers. Thus
you need _exit().
--
Andrew W. Nosenko <address@hidden>
- [configure.ac/uClinux] Adding code for fork/vfork?, Gilles, 2011/04/14
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Bob Friesenhahn, 2011/04/14
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Gilles, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Harlan Stenn, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Gilles, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Mike Frysinger, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Bob Friesenhahn, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?,
Andrew W. Nosenko <=
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Mike Frysinger, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Bob Friesenhahn, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Mike Frysinger, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Mike Frysinger, 2011/04/15
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Gilles, 2011/04/16
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Harlan Stenn, 2011/04/16
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Gilles, 2011/04/16
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Bob Friesenhahn, 2011/04/16
- Re: [configure.ac/uClinux] Adding code for fork/vfork?, Mike Frysinger, 2011/04/16