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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,466件の閲覧回数
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). 

ラベル(1)
タグ(4)
0 件の賞賛
返信
1 解決策
1,454件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamo2 

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

 

元の投稿で解決策を見る

2 返答(返信)
1,455件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamo2 

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

 

1,443件の閲覧回数
tamo2
Contributor II

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

0 件の賞賛
返信