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

Perl 6 ignores SIGPIPE

Thread Next
Sean McAfee
June 16, 2017 06:34
Perl 6 ignores SIGPIPE
Message ID:
I see at

...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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About