You get back an object which supports methods that allow you to ask if the subprocess has finished, and if so what the subroutine's return value was.
If you're interested in how to handle the fork stuff yourself, the code for Async might be worth looking at; it's pretty simple.
Happy Bicycle Day!
In reply to Re: multiple fork()
by Dominus
in thread multiple fork()
by Galen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |