Your sample code uses Parallel::ForkManager, and uses the wait_all_children method to wait for the children to end processing. >From the Parallel::ForkManager docs:
-begin quote- wait_all_children You can call this method to wait for all the processes which have been forked. This is a blocking wait. -end quote- So you are calling a method that says it will block, hence your demo script is blocking. Instead of using "wait_all_children" (which blocks), I would look at using the "run_on_finish" callback method instead, and make the call to stop the spinner from that callback method. Thanks, Brian On Wed, May 28, 2014 at 7:27 PM, tsuyoshi okita <825...@gmail.com> wrote: > Dear gurus, > > I've been trying let a spinner spins at the same time sending an email by > forking and failing. Although a program forks, and one child process > suppose to spin the spinner while other sends email, the spinner does not > spin until the email is completely sent. How does you all usually handle > this spinner thingy??? Am i on a right path?? > > I attached my test case. You need to add SMTP host name, your email > address, and password. > > Thank you. > > Tsuyoshi > > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-perl-list > _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list