From b64e95fa07151ae645cea884c12f4dde8d045412 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Mon, 23 Mar 2015 21:04:39 -0400 Subject: [PATCH] async: Force handling of IPC as binary. Trying to troubleshoot bug 345425, and I'm not sure if Perl might be trying to handle data being transferred over the IPC pipes as Unicode. I would think not but can find nothing in the docs that explicitly says Perl won't do this, so force handling as binary just in case. CCBUG:345425 --- modules/ksb/IPC/Pipe.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ksb/IPC/Pipe.pm b/modules/ksb/IPC/Pipe.pm index bfe9670..b3bd174 100644 --- a/modules/ksb/IPC/Pipe.pm +++ b/modules/ksb/IPC/Pipe.pm @@ -35,8 +35,9 @@ sub setSender $self->{fh}->writer(); - # Disable buffering + # Disable buffering and any possibility of IO 'interpretation' of the bytes $self->{fh}->autoflush(1); + binmode($self->{fh}) } sub setReceiver @@ -45,8 +46,9 @@ sub setReceiver $self->{fh}->reader(); - # Disable buffering + # Disable buffering and any possibility of IO 'interpretation' of the bytes $self->{fh}->autoflush(1); + binmode($self->{fh}) } # Reimplementation of ksb::IPC::supportsConcurrency