Mercurial > octave
view .hgsubstate @ 21527:ab8760b1245d
Raise an error if writes to pipe fail (bug #47381).
* gl2ps-print.cc: Re-order #includes.
* gl2ps-print.cc (gl2ps_renderer::draw): When copying temporary file to pipe,
check that write succeeds by comparing bytes read to bytes written. If an
error has occured, clear the SIGPIPE signal by calling octave_signal_handler
and then raise an error.
letting SIGPIPE interrupt handler eventually deal with the problem.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 22 Mar 2016 15:17:18 -0700 |
parents | 98ecd9dba90f |
children | 30bf9a4d467a |