Remove poll in sending notis to client 87/114687/5
authorJiwoong Im <jiwoong.im@samsung.com>
Mon, 6 Feb 2017 08:13:02 +0000 (17:13 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Tue, 7 Mar 2017 05:10:58 +0000 (21:10 -0800)
commitce1fe24ffac11749739d89bddd7671a3b8dcee82
treea95e7145c27163510bae27071f8d493d45843024
parent342d147f1207d5bdd2192d7e4d9e89b27522aff0
Remove poll in sending notis to client

- If the client is too busy to handle the noti callback, it
  causes buxton daemon to block in poll function.
  To prevent being blocked, remove poll in sending notis to client.
  If the result of noti send is EWOULDBLOCK or EAGAIN, wait until
  the socket fd is writable in the main loop and send it again.

Change-Id: I5c3e54495667cd927182de3323c0a97015e561f4
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 7d4c9d38b654ba340a02187d42d3a5d17ed6ba6b)
common/proto.c
daemon/daemon.c
daemon/daemon.h