Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and the children will just print directly to STDOUT. The parent listens via the $handle, which can be added to an IO::Select, handled using $select->can_read(). It turns out that now there are no zombies, all of the information is getting back, and the thing actually WORKS! (Wow). So, if you end up writing in an fcgi environment with your perl and have to kill some kids, use an open command instead of a fork() command. It's the only real way to stick a fork() in 'em! Add this to your "gee whiz" file and move along to better quality information.Use Symbol; ... my $handle = gensym(); my $pid; if ($pid = open $handle, "-|") { } else { }
|
|---|