|
From: <tim...@en...> - 2006-07-27 21:35:41
|
Hi, I just tried the wxWidgets terminal with octave (2.1.73, not the last=20 development version though). Bad news : it uses "persist" too. octave uses a pipe to talk with gnuplot, and keeps it open through the=20 whole octave session. The "persist" behaviour appears when you close=20 octave (by issuing "quit" at octave prompt). I guess the process goes=20 the following way : octave closes the pipe, gnuplot engages its exit=20 process, the wxWidgets says "hold on !" until all the windows are=20 closed, and ... octave waits for gnuplot to terminate, so you end up=20 with what looks like a frozen prompt until you realize that you have to=20 close the wxt window (you can also hit ctrl-c twice to force octave to=20 close). Like maxima, octave relies on the X11 "persist" behaviour. Ethan suggested two alternatives : - sending a fake signal SIGCHLD to octave, meaning "child process=20 terminated". I tried, and it does not work. octave does not wait for SIGC= HLD - mimic a 'bg' to gnuplot. Well, I don't know how to do that from=20 gnuplot, and I doubt it will actually work : since gnuplot's process is=20 still running, octave still waits for it. Do any of you have a miraculous idea, or should I report that to the=20 octave developers as I did for maxima ? Best regards, Timoth=C3=A9e |