Mercurial > octave-nkf
diff scripts/plot/gnuplot_drawnow.m @ 9561:c60a9e1a0372
try to avoid gnuplot zombies
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 25 Aug 2009 17:41:00 -0400 |
parents | 7e1e90837fef |
children | 40acd13920e3 |
line wrap: on
line diff
--- a/scripts/plot/gnuplot_drawnow.m Thu Aug 13 20:20:32 2009 +0200 +++ b/scripts/plot/gnuplot_drawnow.m Tue Aug 25 17:41:00 2009 -0400 @@ -67,9 +67,12 @@ set (h, "__plot_stream__", default_plot_stream); if (! isempty (plot_stream)) pclose (plot_stream(1)); - if (numel (plot_stream) == 2) + if (numel (plot_stream) > 1) pclose (plot_stream(2)); endif + if (numel (plot_stream) > 2) + waitpid (plot_stream(3)); + endif endif if (! isempty (fid)) fclose (fid);