libs: s3 and s4: make our dns lookup code signal-safe.
authorJeremy Allison <jra@samba.org>
Wed, 9 Apr 2014 22:27:45 +0000 (15:27 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 10 Apr 2014 20:06:08 +0000 (22:06 +0200)
commit4daf7d475c8cca69e2e3b20dc9fb84c4bd8cb4cb
treea85336ff697d360ea4acf8e2ed03a91f543a8b13
parentf5a3d74264abb25009e73b1b35d62db34fa62343
libs: s3 and s4: make our dns lookup code signal-safe.

Cope with -1,EINTR returns. Needed as this code can be
called from inside smbd.

Also fixes a bug in not checking the return from poll()
correctly.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Apr 10 22:06:08 CEST 2014 on sn-devel-104
lib/addns/dnssock.c