On 2005-01-07, Christophe Ochal wrote:
<SNIP>
This could be a problem, what's the situation with AOS4 & fork()?
It's a no-go I'm afraid. It can never work on AmigaOS unless there are quite a lot of (incompatbile) changes...
What are the possible work-arrounds?
Basically there are three uses of fork() which can be worked around in a reasonable way.
The first is the (in)famous fork()+exec() example where the only real use of fork is to start a new process.
The second is when fork() is used to detach from a shell (this can just be removed without any serious loss).
The third is when fork() is used for a worker function and the parent process has little or no state which is relevant for the child. This could e.g. be in a simple webserver.
In almost all other cases, major surgery will be needed and putting a program under the knife to remove a fork() is more than a spoonfull of work.
-Peter aka. Archprogrammer
Reality is for people who cannot face ScienceFiction. Only lefthanded people are in their right minds.