<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1536574#M196286</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have an application using OpenGL.&amp;nbsp; The application sets up a signal handler for a few signals including&amp;nbsp;SIGINT.&amp;nbsp; 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:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; egl_disp = eglGetPlatformDisplay(EGL_PLATFORM_GBM_KHR, (EGLNativeDisplayType)gbmDevice, NULL);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Seems like&amp;nbsp;eglGetPlatformDisplay overrides the signal handler function.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;The application runs on an imx8mp based SOM from Compulab, Yocto hardknott.&lt;/P&gt;&lt;P&gt;The same applications runs fine without any modification on a Snapdragon based system (same source code, built for Snapdragon using MESA).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 23:04:55 GMT</pubDate>
    <dc:creator>tamo2</dc:creator>
    <dc:date>2022-10-12T23:04:55Z</dc:date>
    <item>
      <title>Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1536574#M196286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have an application using OpenGL.&amp;nbsp; The application sets up a signal handler for a few signals including&amp;nbsp;SIGINT.&amp;nbsp; 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:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; egl_disp = eglGetPlatformDisplay(EGL_PLATFORM_GBM_KHR, (EGLNativeDisplayType)gbmDevice, NULL);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Seems like&amp;nbsp;eglGetPlatformDisplay overrides the signal handler function.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;The application runs on an imx8mp based SOM from Compulab, Yocto hardknott.&lt;/P&gt;&lt;P&gt;The same applications runs fine without any modification on a Snapdragon based system (same source code, built for Snapdragon using MESA).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 23:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1536574#M196286</guid>
      <dc:creator>tamo2</dc:creator>
      <dc:date>2022-10-12T23:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1538225#M196398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195580"&gt;@tamo2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it overrides user space signal, this won't have bad effect for egl driver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 03:42:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1538225#M196398</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-10-17T03:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ctrl-C doesn't work in application using OGL (eglGetPlatformDisplay overrides signal handler)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1539663#M196516</link>
      <description>&lt;P&gt;Do you have any idea why&amp;nbsp;&lt;SPAN&gt;eglGetPlatformDisplay() replaces the siganal handler?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 01:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ctrl-C-doesn-t-work-in-application-using-OGL/m-p/1539663#M196516</guid>
      <dc:creator>tamo2</dc:creator>
      <dc:date>2022-10-19T01:34:52Z</dc:date>
    </item>
  </channel>
</rss>

