Subject: | POE::Wheel::Run setsid bugw |
Using POE v0.29, POE::Wheel::Run v1.58, perl v5.6.1, RedHat 7.3
On line 282:
eval 'setsid()';
This throws an 'Undefined subroutine' error on my system, which is masked by the eval. I believe 'setsid' has to be imported using the 'use POSIX' lines at the top of the script. Trivial patch is attached.
I'm assuming it's inside an eval statement in case a system doesn't have the setsid function, but I have no idea if adding setsid to the use list will trigger an error on those systems.
-JayKim
*** Run.pm Thu Dec 9 14:39:07 2004
--- Run.pm.orig Thu Dec 9 14:38:43 2004
***************
*** 9,15 ****
use Carp qw(carp croak);
use POSIX qw(
! sysconf setsid _SC_OPEN_MAX ECHO ICANON IEXTEN ISIG BRKINT ICRNL INPCK
ISTRIP IXON CSIZE PARENB OPOST TCSANOW
);
--- 9,15 ----
use Carp qw(carp croak);
use POSIX qw(
! sysconf _SC_OPEN_MAX ECHO ICANON IEXTEN ISIG BRKINT ICRNL INPCK
ISTRIP IXON CSIZE PARENB OPOST TCSANOW
);