diff options
author | Junghoon Park <jh9216.park@samsung.com> | 2015-12-08 20:10:20 +0900 |
---|---|---|
committer | Junghoon Park <jh9216.park@samsung.com> | 2015-12-08 20:10:20 +0900 |
commit | 8b2091e155ef1d3f2545679d1ce804363fa9d005 (patch) | |
tree | aa91842ec103ec7d2c01dad665df5f5b91caed04 | |
parent | 44612ee7133543d9f8a4578034a5ea4d5107ed81 (diff) | |
download | launchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.tar.gz launchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.tar.bz2 launchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.zip |
Fix bug about handling ECORE_FD_ERRORsubmit/tizen/20151208.112031accepted/tizen/wearable/20151208.130702accepted/tizen/tv/20151208.130644accepted/tizen/mobile/20151208.130626
Change-Id: I919a23bdebfebf5b827f534d9f50ad05e0ca31cd
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
-rw-r--r-- | src/launchpad_loader.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/launchpad_loader.c b/src/launchpad_loader.c index a6cb6b8..0afc78b 100644 --- a/src/launchpad_loader.c +++ b/src/launchpad_loader.c @@ -162,15 +162,13 @@ static Eina_Bool __process_fd_handler(void* data, Ecore_Fd_Handler *handler) exit(-1); } - if (ecore_main_fd_handler_active_get(handler, ECORE_FD_ERROR)) { - _D("[candidate] ECORE_FD_ERROR"); - close(fd); - exit(-1); - } - if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ)) { if (__receiver) __receiver(fd); + } else if (ecore_main_fd_handler_active_get(handler, ECORE_FD_ERROR)) { + _D("[candidate] ECORE_FD_ERROR"); + close(fd); + exit(-1); } return ECORE_CALLBACK_CANCEL; |