Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use new nqp::getpid() op for $*PID.
Means $*PID is now available on JVM backend also.
  • Loading branch information
jnthn committed Jun 23, 2013
1 parent c050747 commit 7f0af9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/terms.pm
Expand Up @@ -155,16 +155,16 @@ sub term:<time>() { nqp::p6box_i(nqp::time_i()) }

nqp::bindkey(nqp::who(PROCESS), '@INC', @INC);

my $PID = nqp::p6box_i(pir::getinterp__P().getpid());
nqp::bindkey(nqp::who(PROCESS), '$PID', $PID);

my $OS = $VM<config><osname>; # XXX: master gets this information with the sysinfo dynop
nqp::bindkey(nqp::who(PROCESS), '$OS', $OS);

my $OSVER = $VM<config><osvers>; # XXX: master gets this information with the sysinfo dynop
nqp::bindkey(nqp::who(PROCESS), '$OSVER', $OSVER);
#?endif

my $PID = nqp::p6box_i(nqp::getpid());
nqp::bindkey(nqp::who(PROCESS), '$PID', $PID);

my $EXECUTABLE_NAME =
#?if parrot
nqp::p6box_s(pir::interpinfo__Si(pir::const::INTERPINFO_EXECUTABLE_FULLNAME));
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2013.06-24-gec11079
2013.06-30-g7fa12e2

0 comments on commit 7f0af9b

Please sign in to comment.