|
From: <tim...@en...> - 2006-07-28 17:57:56
|
Dave Denholm wrote: > =20 >> - 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 i= s=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 ? >> >> =20 > > gnuplot can fork(), then allow the parent to exit, leaving the child > continuing to run the same code in exactly the same state, but > detached. > =20 This won't work in my case, because the terminal is multithreaded and=20 fork() has undetermined behaviour with threads, and because exiting the=20 parent would close file and socket descriptors, thus closing the=20 connection to the X server. A workaround would be to close the GUI=20 thread and the windows before the fork() and to open them again in the=20 child, but I'm not sure maxima users would appreciate to see their=20 window disappearing and reappearing... Best regards, Timoth=E9e |