in reply to Re: Parallel::ForkManager dies with "Free to wrong pool..."
in thread Parallel::ForkManager dies with "Free to wrong pool..."

OK, coming back to this from my other question regarding PostgreSQL, I am running this on Windows and you mention that Windows ignores the POSIX exit.
Can you tell me how this should change to run successfully on Windows?

Thank you.
  • Comment on Re^2: Parallel::ForkManager dies with "Free to wrong pool..."

Replies are listed 'Best First'.
Re^3: Parallel::ForkManager dies with "Free to wrong pool..."
by marioroy (Prior) on Apr 25, 2020 at 19:00 UTC

    Hi perlygapes,

    No changes needed on the Windows platform. The Hobo script in the prior post works. Append the script with the missing subroutines found here.

    sub the_task_I_gave_cain_to_do { ... } sub the_task_I_gave_abel_to_do { ... } sub the_task_I_gave_seth_to_do { ... } sub the_task_I_gave_noah_to_do { ... } sub the_task_I_gave_shem_to_do { ... }

    Output from Strawberry Perl 5.30.1:

    Forming 5 children. Today, I have begotten child 1 as Cain Today, I have begotten child 2 as Abel Cain is working. Today, I have begotten child 3 as Seth Abel is working. Today, I have begotten child 4 as Noah Seth is working. Today, I have begotten child 5 as Shem Noah is working. Waiting on begotten childen... Shem is working. Child Cain exiting

    Regards, Mario