> On 16 Jun 2017, at 08:34, Sean McAfee <eef...@gmail.com> wrote:
> 
> I see at
> 
> http://www.moarvm.com/releases.html
> 
> ...that as of the 2017.03 release, Perl 6 "ignores SIGPIPE by default."  I 
> discovered this for myself when I piped a program that generates unlimited 
> output to the head utility, and the program did not exit when head was 
> finished.  Simple example:
> 
> $ perl6 -e '.say for ^Inf' | head
> 
> This will print numbers up to 9, and then continue to use almost 100% of the 
> CPU printing to a closed pipe.
> 
> I haven't been able to turn up any discussion about this change.  Does anyone 
> have any insight?  It's surprising and, frankly, unwelcome.

Trying this on HEAD I get:

$ 6 '.say for ^Inf' | head
0
1
2
3
4
5
6
7
8
9
Failed to write bytes to filehandle: Broken pipe
  in block <unit> at -e line 1

So it would appear this got fixed by the synchronous IO refactor, and will be 
available in the 2017.06 release, which is scheduled for tomorrow.



Liz

Reply via email to