In perl.git, the branch doy/signal_interrupts_readline_rt113906 has been created

<http://perl5.git.perl.org/perl.git/commitdiff/cae766b573ab66753f39e51ca447fbf246ef3d79?hp=0000000000000000000000000000000000000000>

        at  cae766b573ab66753f39e51ca447fbf246ef3d79 (commit)

- Log -----------------------------------------------------------------
commit cae766b573ab66753f39e51ca447fbf246ef3d79
Author: Jesse Luehrs <[email protected]>
Date:   Sun Jul 1 15:20:35 2012 -0500

    ensure flags are always correct in sv_gets [perl #113906]
    
    If a readline operation was interrupted by a signal handler, and that
    signal handler overwrote the target of the readline assignment, the
    string in the SvPV slot would be updated properly, but the sv flags
    would all still correspond to the sv that was assigned in the signal
    handler, rather than what should be expected by the readline operation.
    For instance, if the signal handler did $ret = 100, $ret would still
    have a string written to it, but it would be SvIOK and not SvPOK. This
    fixes up the flags after the actual blocking read to make sure they are
    still sane.
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to