[Gllug] Sharing hash

Simon Stewart gllug at pubbitch.org
Wed Apr 16 09:06:46 UTC 2003


On Monday 14 April 2003 1:09 pm, Ian Norton wrote:
> i have process that i need to fork and a hash that i want to share between
> the children...

Why not create the hash before forking the children? Then they'd all have a 
copy of it. You might also want to open two pipes before forking, and use one 
to send data to the parent process, and the other to send data to the child 
process, but I'm not sure how feasible that is (are file descriptors also 
duplicated? I guess so)

Cheers,

Simon

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list