You are right! Thankyou for restoring my sanity!
I changed the code an introduced a global $output then inside handler() I set $output ||= $c->param('output');. Upon each run I got the script to output $output.
Then I kept calling the script with a different output: output=1, output=2 etc ... once I got to 9, the printed result was 'Output: 1' ... which means it had got to the end of the available processes and reused the first one again :))
Thanks again!
Cheers! Rick
If this is a root node: Before responding, please ensure your clue bit is set.
If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
| [reply] [d/l] [select] |
You can see what's happening more simply by just printing the process id, $$, in your warning.
| [reply] |