in reply to Re^4: Problem with exit status of bash script
in thread Problem with exit status of bash script

Oh, I see. You were probably asking about the array @dead. I didn't notice it (that's why it's a good idea to use strict and declare all variables). Yeah, parent cannot use @dead because after fork parent and child are two completely different processes and don't share variables (actually, parent can use @dead but it just will be empty).