Mercurial > hg > octave-nkf
comparison scripts/plot/gnuplot_drawnow.m @ 12073:fe30458b1de8 release-3-2-x
try to avoid gnuplot zombies
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 26 Aug 2009 08:17:08 +0200 |
parents | b50d1eb62747 |
children | f12b581a1572 |
comparison
equal
deleted
inserted
replaced
12072:33c46d112b05 | 12073:fe30458b1de8 |
---|---|
65 endif | 65 endif |
66 unwind_protect_cleanup | 66 unwind_protect_cleanup |
67 set (h, "__plot_stream__", default_plot_stream); | 67 set (h, "__plot_stream__", default_plot_stream); |
68 if (! isempty (plot_stream)) | 68 if (! isempty (plot_stream)) |
69 pclose (plot_stream(1)); | 69 pclose (plot_stream(1)); |
70 if (numel (plot_stream) == 2) | 70 if (numel (plot_stream) > 1) |
71 pclose (plot_stream(2)); | 71 pclose (plot_stream(2)); |
72 endif | 72 endif |
73 if (numel (plot_stream) > 2) | |
74 waitpid (plot_stream(3)); | |
75 endif | |
73 endif | 76 endif |
74 if (! isempty (fid)) | 77 if (! isempty (fid)) |
75 fclose (fid); | 78 fclose (fid); |
76 endif | 79 endif |
77 end_unwind_protect | 80 end_unwind_protect |