I commented wait_all_children like you said and tried, and the spinner does not stop.
The script "gtk3_spinner_fork2.pl" has wait_all_children as well. I just commented and tested, and the spinner does not stop. it just keeps spinning.
I followed a sample code from Parallel::ForkManager CPAN site, and in it it has wait_all_children() stated even though it has run_on_finish() and run_on_start(). This is the reason why I left wait_all_children().
I removed email part and added sleep() instead. It gave me the same result.
# print statements
$pid[0] = $pm->start;
sleep 2;
$pm->finish(1);
Attachment:
gtk3-spinner.pl
Description: Binary data
Attachment:
gtk3-spinners.pl
Description: Binary data