Rocco,
One of my coworkers who uses my POE-based framework discovered an
interesting semantic difference between using POE::Wheel::Run running a
Perl function vs. the typical fork-exec.
Observe the results of these two one-liners:
perl -e 'rand; if (fork) { print rand } else { print rand }'
perl -e 'rand; if (fork) { print rand } else { exec("perl -e \"print
rand\"") }'
W/o an exec, the first and second rand() will always produce the same
result.
Would it make sense for POE::Wheel::Run to call srand before the perl
function is executed in the child process?
Pete