Fixed the deadlock issue.
authorWonkeun Oh <wonkeun.oh@samsung.com>
Fri, 24 Feb 2017 01:36:27 +0000 (10:36 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Feb 2017 23:50:26 +0000 (08:50 +0900)
commite6686cd423934863fae2f6b5537a0be40e3a9100
tree881f7444ced83415910c86719a54d6f822907d55
parent1ec8efe65ad2a8aed760cb6c2231541663a942a9
Fixed the deadlock issue.

If the default event queue is empty, the 'wl_display_dispatch' function blocks until there are events to be read from the display fd.
So, it might cause the deadlock state of the application's process, If the event queue is empty continually because of some problem.

As for the 'wl_display_roundtrip' function,
This function blocks until the server has processed all currently issued requests by sending a request to the display server and waiting for a reply before returning.

Plus, these functions return the -1 on failure such as closed connection case. It need to be checked

Change-Id: If1e007196945422433d66bf47de58f1809f0535d
ism/extras/wayland_immodule/wayland_imcontext.c