Acme-Spork
view release on metacpan or search on metacpan
lib/Acme/Spork.pm view on Meta::CPAN
Its always a good idea to local()ize it as well (and specify all 3 handles, otherwise you may get some strange warnings and behavior):
local %Acme::Spork::reopen_stdfhs_to = (
STDIN => [qw(< /dev/null)],
STDOUT => [qw(> /dev/null)],
STDERR => [qw(> &STDOUT)],
);
spork(...)
or you can have it set to the value above globally like so:
use Acme::Spork qw(-reopen_stdfhs);
...
spork(...)
=head2 setsid()
Say you have a custom module that is a subset of POSIX functions that includes setsid() and you'd rather use that one instead of bringing in all of POSIX.
Just define Acme::Spork::setsid ()
( run in 0.882 second using v1.01-cache-2.11-cpan-49f99fa48dc )