Fixed thread safety procedure by adding SOCK_CLOEXEC flag
authorAshok Channa <ashok.channa@samsung.com>
Mon, 20 Apr 2015 21:56:55 +0000 (14:56 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 12 May 2015 16:43:01 +0000 (16:43 +0000)
commitdae51bf478fc985769ab50aba0c848a75977d4a9
tree0841dbfea75a035af3950d33cc267307464c10c6
parentce54868f1850d05fe88afbc7adfadf568d466b70
Fixed thread safety procedure by adding SOCK_CLOEXEC flag

JIRA ticket IOT-440 suggested to use SOCK_CLOEXEC flag for
socket file descriptor for thread safety.
This fix will ensure SOCK_CLOEXEC flag is checked
if kernal has supports  for it.

Signed-off-by: Ashok Channa <ashok.channa@samsung.com>
Change-Id: I84efdcd721c1f34f8d0931e08acbdcb147b9a5db
Reviewed-on: https://gerrit.iotivity.org/gerrit/774
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/src/ip_adapter/android/caipnwmonitor.c
resource/csdk/connectivity/src/ip_adapter/caipserver.c