in reply to Re^3: Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?
in thread Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?

Would appreciate if you could help me understand whats going on

I've already explained:

The only reason it wouldn't be responsive is if you have slow code that executes in the parent.

In addition to intentionally slowing down the parent (sleep 5;), your parent blocks (my $job = $clnt->reserve();). This prevents it from reaping in a timely manner.

  • Comment on Re^4: Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?
  • Select or Download Code