[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [configure.ac/uClinux] Adding code for fork/vfork?
From: |
Mike Frysinger |
Subject: |
Re: [configure.ac/uClinux] Adding code for fork/vfork? |
Date: |
Fri, 15 Apr 2011 18:42:38 -0400 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.3; KDE/4.6.0; x86_64; ; ) |
On Friday, April 15, 2011 18:28:39 Harlan Stenn wrote:
> Giles wrote:
> > Thanks Bob, but some applications don't use conditional compiling and
> > simply use code like this:
> > ============
> > if (uClinux) {
> >
> > *pid = vfork();
> >
> > } else {
> >
> > *pid = fork();
> >
> > }
> > ============
> >
> > Will the cross-compiler go ahead and compile that type of code?
> > Currently, it refuses to proceed because fork() is not available on
> > non-MMU CPU's.
>
> 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.
-mike
signature.asc
Description: This is a digitally signed message part.
- [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 <=
- 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, 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?, 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