Commit 21abf1df authored by Alejandro Homs Puron's avatar Alejandro Homs Puron

* Using GLDisplay.GLForkCallback interface for fork cleanup

parent 1b0c5258
......@@ -6,12 +6,15 @@ from Lima import Core, GLDisplay, Frelon
acq = Frelon.FrelonAcq(0)
ct_control = acq.getGlobalControl()
def frelon_cleanup():
global acq
del acq
class FrelonCleanup(GLDisplay.GLForkCallback):
def execInForked(self):
global acq
del acq
frelon_cleanup = FrelonCleanup()
gldisplay = GLDisplay.CtSPSGLDisplay(ct_control, [])
gldisplay.setForkCleanup(frelon_cleanup)
gldisplay.addForkCallback(frelon_cleanup)
gldisplay.setSpecArray('GLDisplayTest', 'Frelon')
gldisplay.createWindow()
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment