develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123775] Args to 'system' not evaluated before forking, making $$ wrong

Thread Previous | Thread Next
From:
Chris Wagner via RT
Date:
February 14, 2015 06:22
Subject:
[perl #123775] Args to 'system' not evaluated before forking, making $$ wrong
Message ID:
rt-4.0.18-31281-1423863162-1447.123775-15-0@perl.org
This is a confirmed regression introduced with making $$ magic in 5.16.  This could also affect any other command that interprets its arguments post fork().  The cheapest fix is probably to make all fork()'ing statements copy the argument list before the fork().


$ perl -le 'print "$^V $$"; system "echo", $$'
v5.14.4 8628
8628



---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=123775

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About