The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.0.8 - 2009-04-01

  • Double fork to avoid needing to munge $SIG{CHLD} outside of spork()
  • pipe() to get spork()ed process's PID back for return
  • $SIG{CHLD} so that $? inside spork() is correct (i.e. not -1 for auto reaped)
  • the 3 things above also make it zombie safe for when the parent outlives the child
  • explicit exit after coderef call to avoid "fork doubling"
  • Ability to define Acme::Spork::setsid() to not use POSIX::setsid() (i.e. to not load POSIX)


Perl extension for spork()ing in your script