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

* 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.setSpecArray('GLDisplayTest', 'Frelon')
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
Supports Markdown
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