ctdb-common: Fix CID 1362729 Unchecked return value from library
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2016 01:15:58 +0000 (11:15 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 21:00:25 +0000 (23:00 +0200)
commit6d1099a522de129cee8cdf9183ab3aaabe0592db
tree83bb868ac2c40511044fb61312263fb0751c447d
parent198ca8839175e93988ee52e033195238064aaba5
ctdb-common: Fix CID 1362729 Unchecked return value from library

Drop setting socket non-blocking and close-on-exec.  The socket is
closed soon after.  Only a single packet is sent, making it almost
impossible for it to block.  Also, note that sockets aren't setup this
way for IPv6.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12157

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system_aix.c
ctdb/common/system_freebsd.c
ctdb/common/system_gnu.c
ctdb/common/system_kfreebsd.c
ctdb/common/system_linux.c