Better @INC handling for forkAndExec (haarg!)
This commit is contained in:
parent
c86ee12651
commit
af3cd8e4d0
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package WebGUI::Fork;
|
|||
use warnings;
|
||||
use strict;
|
||||
|
||||
use File::Spec;
|
||||
use JSON;
|
||||
use POSIX;
|
||||
use Config;
|
||||
|
|
@ -277,7 +278,7 @@ sub forkAndExec {
|
|||
my $id = $self->getId;
|
||||
my $class = ref $self;
|
||||
my $json = JSON::encode_json($request);
|
||||
my @inc = map {"-I$_"} @INC;
|
||||
my @inc = map {"-I$_"} map { File::Spec->rel2abs($_) } grep { !ref } @INC;
|
||||
my @argv = (@inc, "-M$class", "-e$class->runCmd()" );
|
||||
$class->daemonize(
|
||||
$json,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue