Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "One more use of CLONE-LIST-DECONTAINERIZED"
This reverts commit 371434f.

$args-without is initialized with $!path.Str, which this patch dropped,
rending Proc::Async unusable.
  • Loading branch information
moritz committed Jan 26, 2015
1 parent 371434f commit 2def0ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/Proc/Async.pm
Expand Up @@ -162,6 +162,12 @@ my class Proc::Async {
$!started = True;

my %ENV := $ENV ?? $ENV.hash !! %*ENV;

my Mu $args-without := nqp::list(nqp::decont($!path.Str));
for @!args.eager {
nqp::push($args-without, nqp::decont(.Str));
}

$!exit_promise = Promise.new;

my Mu $callbacks := nqp::hash();
Expand All @@ -183,7 +189,7 @@ my class Proc::Async {
nqp::bindkey($callbacks, 'write', True) if $.w;

$!process_handle := nqp::spawnprocasync($scheduler.queue,
CLONE-LIST-DECONTAINERIZED(@!args),
$args-without,
$*CWD.Str,
CLONE-HASH-DECONTAINERIZED(%ENV),
$callbacks,
Expand Down

0 comments on commit 2def0ea

Please sign in to comment.