You can return information to the parent via a number of methods. The common way is simply as a return code, or using pipes. Setting global variables, though, is problematic and won't allow you to scale up your solution.
Look up IPC (inter-process communication) and decide on which method is best for your program.
In reply to Re: Re: Re: basic fork question
by kal
in thread basic fork question
by sickboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |