This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop system select from croaking on read-only COW ""
authorFather Chrysostomos <sprout@cpan.org>
Sat, 10 Aug 2013 03:22:29 +0000 (20:22 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 14:41:26 +0000 (07:41 -0700)
commitba3062ae5fbdf03fcd307336079938ace26aee2b
treef7977ae183078c501c23ee577fccaf8aeb5442d4
parent958851d8f0bcfcbfc1dd2ad9e869430180974b69
Stop system select from croaking on read-only COW ""

System select (select with 4 arguments) does not allow any of its
first three arguments to be read-only unless they are undef or
empty strings.

It does not work properly for read-only copy-on-write empty strings,
because it passes all copy-on-write through sv_force_normal under the
expectation that they will shortly be modified.  It should not be
doing that for read-only empty strings.
pp_sys.c
t/op/sselect.t