mount.nfs: fix hang when getport() uses TCP against unavailable servers
authorChuck Lever <chuck.lever@oracle.com>
Sat, 28 Jul 2007 21:50:19 +0000 (17:50 -0400)
committerNeil Brown <neilb@suse.de>
Mon, 30 Jul 2007 06:12:53 +0000 (16:12 +1000)
commit897f581874255d363e00ef94534f6fced8dd2ba2
tree244dce0e5dd307ef189925fe3af1a3c86d4da475
parenta3c8371b4f4cf9f0ff93ca040cac13dc4806ded9
mount.nfs: fix hang when getport() uses TCP against unavailable servers

If get_socket() can't get us an open TCP socket, we know the server is
down, so make  getport() exit early instead of hanging.  This logic is
copied from clnt_ping().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/network.c