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)

Modules

Perl extension for spork()ing in your script