Branch: Tag:

2017-09-24

2017-09-24 08:51:29 by Arne Goedeke <el@laramies.com>

Stdio.Buffer: trigger fd output in add_int*() and input_from()

The add_int family of methods and input_from() did not trigger a call
to the fd output function, which could result in write() never being
called when using Stdio.File buffer mode.

997:       if (!bread) RETURN -1;    +  io_trigger_output( io ); +     RETURN bread;    }   
1282:    *io_add_space(io,1,0)=i;    io->len++;    Pike_sp--; +  io_trigger_output( io );    ref_push_object(Pike_fp->current_object);    }   
1296:    p[0] = i>>8;    p[1] = i;    io->len += 2; +  io_trigger_output( io );    ref_push_object(Pike_fp->current_object);    }   
1311:    p[2] = i>>8;    p[3] = i;    io->len += 4; +  io_trigger_output( io );    ref_push_object(Pike_fp->current_object);    }