Add destroy handler for g_io_add_watch 89/158289/10
authorInkyun Kil <inkyun.kil@samsung.com>
Tue, 31 Oct 2017 00:11:46 +0000 (09:11 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Tue, 21 Nov 2017 06:55:04 +0000 (15:55 +0900)
commit55f04924ff585172129820abd1604a1af117360e
treeb4da873ada14d50e9064dd4993a581e4714a5518
parent266b6ebd991c21bcc6ed4ccd5cb8a40402c8e474
Add destroy handler for g_io_add_watch

This is for applications running in a multithreaded environment.
When socket is disconnected in a main thread and port is unregistered in
another thread simultaneously, memory corruption can occur.

Change-Id: I54518e156f1a92ca11a9d77a1af0823ae9520e4b
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/message_port.c
src/message_port_local.c
src/message_port_remote.c