ecore_drm_tty:Do not add user signal event handler, 88/63888/2 accepted/tizen/common/20160329.050922 accepted/tizen/ivi/20160328.115833 accepted/tizen/mobile/20160328.115628 accepted/tizen/tv/20160328.115723 accepted/tizen/wearable/20160328.115827 submit/tizen/20160328.094850
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 28 Mar 2016 08:53:16 +0000 (17:53 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 28 Mar 2016 08:58:52 +0000 (17:58 +0900)
              if  ECORE_DRM_TTY_HANDLE_SIGUSR isn't set

Change-Id: I50fbed4636bd2e331a3dc162b9af71ba9b65945e

src/lib/ecore_drm/ecore_drm_tty.c

index 9907a61..1408968 100644 (file)
@@ -183,9 +183,12 @@ ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name)
         return EINA_FALSE;
      }
 
-   dev->tty.event_hdlr = 
-     ecore_event_handler_add(ECORE_EVENT_SIGNAL_USER, 
-                             _ecore_drm_tty_cb_vt_signal, dev);
+   if (getenv("ECORE_DRM_TTY_HANDLE_SIGUSR"))
+     {
+        dev->tty.event_hdlr =
+          ecore_event_handler_add(ECORE_EVENT_SIGNAL_USER,
+                                  _ecore_drm_tty_cb_vt_signal, dev);
+     }
 
    /* set current tty into env */
    setenv("ECORE_DRM_TTY", tty, 1);