Hi,
We have an application using OpenGL. The application sets up a signal handler for a few signals including SIGINT. We noticed that Ctrl-C signal handler wasn't working in the application and we tracked it down and it was a call to an OGL function:
egl_disp = eglGetPlatformDisplay(EGL_PLATFORM_GBM_KHR, (EGLNativeDisplayType)gbmDevice, NULL);
Seems like eglGetPlatformDisplay overrides the signal handler function. By resetting the signal handler to our own, Ctrl-C seems to work, but I am wondering if there is any bad side effect of doing that.
The application runs on an imx8mp based SOM from Compulab, Yocto hardknott.
The same applications runs fine without any modification on a Snapdragon based system (same source code, built for Snapdragon using MESA).
已解决! 转到解答。