examples/libcoap : minor patch on select timeout
authorJin-Seong Kim <jseong82.kim@samsung.com>
Wed, 9 Aug 2017 00:19:08 +0000 (09:19 +0900)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:16:45 +0000 (21:16 -0700)
commita74f7aa745853a555c100dcd7b826444f0468af6
tree985ae4bd2794156240b3c2d3551e0201aaecf6fb
parent9e3d44b1ff6156798960390f72e30daf9b0904ff
examples/libcoap : minor patch on select timeout

This commit is minor patch on select timeout
 - set timeout to wait_seconds when timeout exceeds it
 - clear readfds when application exits

Change-Id: Ie477b6dc868bbc4d69941579059b0d587300b4ab
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
apps/examples/libcoap_client/libcoap-client.c
apps/examples/libcoap_server/libcoap-server.c