Fix double close issue
When calling the g_io_channel_unref() function, the socket fd is closed
by the glib. The AUL library has a problem that is a double close issue.
This patch is to fix the issue.
+------------------------------------------------------------------------------+
| [__AUL_WORKER__] close(188) |
| close backtrace() returned 9 addesses |
| [ 0] close /lib/libinterceptor.so(close+0x4d) [0xb60da72a] |
| [ 1] ? /lib/libglib-2.0.so.0(+0x430c00ea) [0xb0a620ea] |
| [ 2] g_io_channel_shutdown /lib/libglib-2.0.so.0(g_io_channel_shutdown+0x75) |
| [0xb0aa49f2] |
| [ 3] ? /lib/libaul.so.0(+0x43c0df00) [0xae66ff00] |
| [ 4] g_list_foreach /lib/libglib-2.0.so.0(g_list_foreach+0x13) [0xb0a99080] |
| [ 5] g_list_free_full /lib/libglib-2.0.so.0(g_list_free_full+0x9) |
| [0xb0a9dc0e] |
| [ 6] ? /lib/libaul.so.0(+0x43c0e284) [0xae670284] |
| [ 7] ? /lib/libglib-2.0.so.0(+0x430dbc42) [0xb0a7dc42] |
| [ 8] ? /lib/libpthread.so.0(+0x430174c4) [0xb5d044c4] |
+------------------------------------------------------------------------------+
| [__MAIN__] close(188) |
| close backtrace() returned 13 addesses |
| [ 0] close /lib/libinterceptor.so(close+0x4d) [0xb60da72a] |
| [ 1] aul_sock_destroy_server /lib/libaul.so.0(aul_sock_destroy_server+0x2e3) |
| [0xae67302c] |
| [ 2] aul_finalize /lib/libaul.so.0(aul_finalize+0x15) [0xae673196] |
| [ 3] _ZN9tizen_cpp11AppCoreBase11OnTerminateEv |
| /lib/libapp-core-cpp.so.1(_ZN9tizen_cpp11AppCoreBase11OnTerminateEv+0x5)|
| [0xae22d046] |
| [__MAIN__] EBADF occurs. fd(188) |
+------------------------------------------------------------------------------+
Change-Id: Id465eefae87653d2acb706875732ec176ce95bb1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>