]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Use OSI_NULLSOCKET and not -1 to indicate invalid fssync fd
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 28 Oct 2010 04:43:26 +0000 (00:43 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Feb 2011 14:56:24 +0000 (06:56 -0800)
commitab6f0b9630887d634103f425336b2bb38a063580
tree094a529da4c12ba26e4d1ee841cff29406dc997e
parent1c8b1964f8d24fb709baf04fe2e1460d08fba848
vol: Use OSI_NULLSOCKET and not -1 to indicate invalid fssync fd

The FSync file descriptor is an osi_socket which has an invalid
value of OSI_NULLSOCKET which is not necessarily -1.  Be sure to
compare against OSI_NULLSOCKET and not -1 when checking an invalid
value.

Reviewed-on: http://gerrit.openafs.org/3179
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit e8991ff8286f151d109bb4f98d885a583e198f83)

Change-Id: I1627ce0b78d10626b7d375546b400459ff1724ca
Reviewed-on: http://gerrit.openafs.org/3885
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/daemon_com.c
src/vol/fssync-server.c
src/vol/salvsync-server.c