I have an issue with AnyEvent::Utils::fork_call. I m using fork_call, then doing some work, and after that i should end my fork_call, and start new parallel task.
I tried that:
fork_call {
# very important work
# start new parallel task
if (my $pid = fork) {
# other important and very long work
}
} sub {
# never reached this, while parallel task working
}
I suppouse that any event fork_call is waiting for all its childs to finish their jobs.
So how can I avoid this problem? Maybe I should get rid of parent process?
Any suggestions and advices are welcome. Thank you.