Child processes get copies of the variables and environment. Changes in the child are local to the child. What you want is some form of shared memory. Check the IPC namespace and Mmap.
Update: Re your reply, indeed OTT for what you want. A pipe, perhaps with a signal handler to read and close it, will do for that.
After Compline,
Zaxo
In reply to Re: Global variables over many children
by Zaxo
in thread Global variables over many children
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |