]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidxpart: binmode
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 23 Feb 2018 02:28:53 +0000 (02:28 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 28 Feb 2018 18:52:49 +0000 (18:52 +0000)
Probably unnecessary, but set binmode for consistency across
platforms.

lib/PublicInbox/SearchIdxPart.pm

index 64e5263657160430ecec3de2fa88d06adec3f155..63fc70491354ea5aa1933c7a2325637fca3a9e59 100644 (file)
@@ -11,6 +11,8 @@ sub new {
        $self->{threader} = $threader;
        my ($r, $w);
        pipe($r, $w) or die "pipe failed: $!\n";
+       binmode $r, ':raw';
+       binmode $w, ':raw';
        my $pid = fork;
        defined $pid or die "fork failed: $!\n";
        if ($pid == 0) {