Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler)

Jump to solution
569 Views
tamo2
Contributor II

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). 

Labels (1)
0 Kudos
Reply
1 Solution
557 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamo2 

As it overrides user space signal, this won't have bad effect for egl driver.

 

View solution in original post

2 Replies
558 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamo2 

As it overrides user space signal, this won't have bad effect for egl driver.

 

546 Views
tamo2
Contributor II

Do you have any idea why eglGetPlatformDisplay() replaces the siganal handler?

0 Kudos
Reply