Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
9560:d280bfa04996 | 9561:c60a9e1a0372 |
---|---|
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 |