develooper Front page | perl.perl6.users | Postings from June 2017

Perl 6 ignores SIGPIPE

Thread Next
From:
Sean McAfee
Date:
June 16, 2017 06:34
Subject:
Perl 6 ignores SIGPIPE
Message ID:
CANan03ZOeJWjcKzpAtbkLkoNdfMPrDX3O6aai=64KRkAbKw9eQ@mail.gmail.com
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.

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