From: Changyeon Lee Date: Mon, 28 Mar 2016 08:53:16 +0000 (+0900) Subject: ecore_drm_tty:Do not add user signal event handler, X-Git-Tag: accepted/tizen/common/20160329.050922^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F63888%2F2;p=platform%2Fupstream%2Fefl.git ecore_drm_tty:Do not add user signal event handler, if ECORE_DRM_TTY_HANDLE_SIGUSR isn't set Change-Id: I50fbed4636bd2e331a3dc162b9af71ba9b65945e --- diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c index 9907a61..1408968 100644 --- a/src/lib/ecore_drm/ecore_drm_tty.c +++ b/src/lib/ecore_drm/ecore_drm_tty.c @@ -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);