[Bug 1062267] IPC::Run3::run3($command, \undef) clobbers STDIN

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 6 15:09:10 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1062267



--- Comment #2 from Ralf Corsepius <rc040203 at freenet.de> ---
(In reply to Petr Pisar from comment #0)
> If IPC::Run3::run3() is invoked with \undef for command's standard input, it
> will clobber STDIN, so STDIN is unusable after return from run3():
> 
> Reproducer:
> 
> $ printf '1\n2\n'| perl -MIPC::Run3 -e 'while (<>) { print; run3([q{true}],
> \undef) }' 
> 1
> 
> This should print:
> 
> 1
> 2
> 
> But it stops after first loop.
> 
> Observed in perl-IPC-Run3-0.046-3.fc20.noarch, F20.
> 
> Reported to upstream, patch is there.

Thanks for the report. 

Presuming you to have tested all this carefully and "just being into it" and me
not having enough time to look into this today, feel free to apply the patch to
git. 

Otherwise, I'll look into it, tomorrow.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=4NWaAMhVxk&a=cc_unsubscribe



More information about the perl-devel mailing list