Subject: | syswrite return values in not checked in run_filter |
while (my $len = sysread(SRC, $buf, $sz)) {
syswrite(CMD, $buf, $len);
}
in this code syswrite is writing to pipe, thus can return undef + $!{EINTR} or something less than $sz bytes.
just found one old report http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/62216 where person sees files truncated after this.