changeset 14381:688e19ca262b

Clear zombie processes produced by calling print() using the fltk toolkit. Fix bug # 34595. * print.m: Add waitpid(0) following output by OpenGL/fltk toolkit.
author Ben Abbott <bpabbott@mac.com>
date Fri, 17 Feb 2012 20:09:04 -0500
parents 81183cd6eaae
children e2306a8e054c
files scripts/plot/print.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/print.m	Fri Feb 17 11:40:27 2012 -0800
+++ b/scripts/plot/print.m	Fri Feb 17 20:09:04 2012 -0500
@@ -393,6 +393,10 @@
       opts = __gnuplot_print__ (opts);
     otherwise
       opts = __fltk_print__ (opts);
+      if (isunix ())
+        ## FIXME - Is there a way to explicitly determine the pid numbers?
+        waitpid (0);
+      endif
     endswitch
 
   unwind_protect_cleanup