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
wilder
Michael Pyne 11 years ago
parent ac5ac06756
commit b64e95fa07
  1. 6
      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

Loading…
Cancel
Save