]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volser: use OS_CLOSE() instead of close()
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 15 Jan 2011 16:44:08 +0000 (11:44 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 3 Feb 2011 20:03:11 +0000 (12:03 -0800)
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 <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit ecf55b063e7c9bbbac426831dfe504c1db92bb52)

Change-Id: I40114c0cf071a18612bb1ed29d18ab145f466dec
Reviewed-on: http://gerrit.openafs.org/3830
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/volser/volprocs.c

index f936d4f49b870fbd16a4d6f83368762ec5e3778c..469272ed7edc6b4400cf7aeb1e44cb9b4514da0c 100644 (file)
@@ -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;
        }
     }