From: Jeffrey Altman Date: Sat, 15 Jan 2011 16:44:08 +0000 (-0500) Subject: volser: use OS_CLOSE() instead of close() X-Git-Tag: upstream/1.6.0.pre2^2~75 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e1356ef5a23008af5b46e1f89a7360c0f026e42d;p=packages%2Fo%2Fopenafs.git volser: use OS_CLOSE() instead of close() Use OS_CLOSE() instead of close() when closing vol package allocated file descriptors. On Windows, close() != nt_close(). Reviewed-on: http://gerrit.openafs.org/3668 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit ecf55b063e7c9bbbac426831dfe504c1db92bb52) Change-Id: I40114c0cf071a18612bb1ed29d18ab145f466dec Reviewed-on: http://gerrit.openafs.org/3830 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index f936d4f49..469272ed7 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -135,7 +135,7 @@ VPFullUnlock_r(void) struct DiskPartition64 *tp; for (tp = DiskPartitionList; tp; tp = tp->next) { if (tp->lock_fd != INVALID_FD) { - close(tp->lock_fd); /* releases flock held on this partition */ + OS_CLOSE(tp->lock_fd); tp->lock_fd = INVALID_FD; } }