Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Attempt #2 at using CLONE-LIST-DECONTAINERIZED
  • Loading branch information
lizmat committed Jan 26, 2015
1 parent 2def0ea commit 88b2d14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/core/Proc/Async.pm
Expand Up @@ -163,11 +163,6 @@ my class Proc::Async {

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 @@ -189,7 +184,7 @@ my class Proc::Async {
nqp::bindkey($callbacks, 'write', True) if $.w;

$!process_handle := nqp::spawnprocasync($scheduler.queue,
$args-without,
CLONE-LIST-DECONTAINERIZED($!path,@!args),
$*CWD.Str,
CLONE-HASH-DECONTAINERIZED(%ENV),
$callbacks,
Expand Down
4 changes: 2 additions & 2 deletions src/core/control.pm
Expand Up @@ -302,9 +302,9 @@ sub CLONE-HASH-DECONTAINERIZED(\hash) {
$hash-without;
}

sub CLONE-LIST-DECONTAINERIZED(\list) {
sub CLONE-LIST-DECONTAINERIZED(*@list) {
my Mu $list-without := nqp::list();
nqp::push($list-without, nqp::decont(~$_)) for list.eager;
nqp::push($list-without, nqp::decont(~$_)) for @list.eager;
$list-without;
}

Expand Down

0 comments on commit 88b2d14

Please sign in to comment.