in reply to Re: Objects and forking
in thread Objects and forking
Tilly verified what I was thinking, from the point of the call to fork each entity is a seperate thing as far as data within it goes. File handles are another story though, since they are inherited from parent to child it would be a mess when the children went to send any output to them.
What I am doing is creating an object containing some generic data (email addresses, subject, etc) that will be common amongst all children. Each child process will add its own pertinent information and do what it needs to with the object. Basically send an email alert with it's own data in the body of the email, but each child has the same 'To:' and 'Subject:'.